如何过滤掉字符串中的html代码?
1string s = @"<span class='lframe-t-text'>今日<font color='red'>热门新闻</font></span><div>adfadf</div>";
2s =System.Text.RegularExpressions.Regex.Replace(s,"<[^>]+>","");
3Response.Write(s);
来自CSDN网友,记个笔记.
2s =System.Text.RegularExpressions.Regex.Replace(s,"<[^>]+>","");
3Response.Write(s);