C#提取html文本内容
时间:2014-02-09 15:40:37
收藏:0
阅读:400
public string Tohtml(string zifu) { string noStyle = zifu.Replace(""", "\"").Replace("<", "<").Replace(">", ">").Replace(""", "\"").Replace(" ", ""); noStyle = Regex.Replace(noStyle, @"<[\w\W]*?>", "", RegexOptions.IgnoreCase); noStyle = Regex.Replace(noStyle, @"\s", "", RegexOptions.IgnoreCase); return noStyle; }
原文:http://www.cnblogs.com/lampon/p/3540725.html
评论(0)
