C#去除指定字符串中的HTML标签相关代码函数
摘要:
//去除指定字符串中的HTML标签相关代码函数 private static string RemoveHtml(string strContent, string strTagName, int strType) { string pattern = ""; string strResult = ""; Regex exp; MatchCollection matchList; switch (strType) { case 1://去掉中标记的内容,保留后面的所有代码 pattern = @"])*>"; exp = new 阅读全文
posted @ 2008-05-21 11:50 风灵溪清 阅读(393) 评论(0) 推荐(0)
浙公网安备 33010602011771号