过滤html文本中的多余属性

代码:Regex.Replace(result, "<p[^>]*>", "<p>", RegexOptions.IgnoreCase);

说明:过滤了p标签中的所有属性,只保留<p>  如:<p style="***" width="**"> 过滤后 <p>

原文地址:https://www.cnblogs.com/weidehao555/p/html.html