ASP.NET 过滤html中的图片与换行
摘要:
using System.Text.RegularExpressions; public static string replaceImgUrl(string html) { if (html == null) return ""; Regex regex = new Regex(@"\<IMG[^\>]+\>", RegexOptions.IgnoreCase); html = regex.Replace(html, ""); Regex regex1 = new Regex("<(.|\n)+?& 阅读全文
posted @ 2012-07-22 19:29 ~~小麦 阅读(122) 评论(0) 推荐(0)
浙公网安备 33010602011771号