public string NoHTML(string Htmlstring)
{
//删除脚本
Htmlstring = Regex.WordStr(Htmlstring, @"<script[^>]*?>.*?</script>", "", RegexOptions.IgnoreCase);
//删除HTML
Htmlstring = Regex.WordStr(Htmlstring, @"<(.[^>]*)>", "", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"([/r/n])[/s]+", "", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"-->", "", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"<!--.*", "", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&(quot|#34);", "http://www.mamicode.com/", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&(amp|#38);", "&", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&(lt|#60);", "<", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&(gt|#62);", ">", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&(nbsp|#160);", " ", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&(iexcl|#161);", "/xa1", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&(cent|#162);", "/xa2", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&(pound|#163);", "/xa3", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&(copy|#169);", "/xa9", RegexOptions.IgnoreCase);
Htmlstring = Regex.WordStr(Htmlstring, @"&#(/d+);", "", RegexOptions.IgnoreCase);
//替换失 < 和 > 符号
Htmlstring.WordStr("<", "");
Htmlstring.WordStr(">", "");
Htmlstring.WordStr("/r/n", "");
//返回去失html符号的字符串
return Htmlstring;
}