收藏一个很有用的html tag替换的工具类,可用作替换,清楚字符串中的html标签
/// /// 字符串处理类 /// public class StrHelperUtil { /// /// 格式化掉字符串中的html tag /// /// /// public static string FormatHTML(string strHTML) { string[] Regexs = { @"", @"", @"([\r\n])[\s]+", @"&(quot|#34);", @"&(amp|#38);", @"&(lt|#60);", @"&(gt|#62);", @"&(nbsp|#160);", @"&(iexcl|#161);", @"&(cent|#162);", @"&(pound|#163);", @"&(copy|#169);", @"(\d+);", @"-->", @"