///
///替换标签,把<>" 替换为HTML标记///
///
///
public static string returnHtml(stringstr)
{if (str.Trim() != "")
{
str= str.Replace(@"<", "
str= str.Replace(@">", "
str= str.Replace(@"", " ");
str= str.Replace(@""", @"""");
}returnstr;
}///
///过滤HTML标记///
/// 包括HTML的源码
/// 已经去除后的文字
public static string NoHTML(stringHtmlstring)
{//删除脚本
Htmlstring = Regex.Replace(Htmlstring, @"", "",
RegexOptions.IgnoreCase);//删除HTML
Htmlstring = Regex.Replace(Htmlstring, @"-->", "", RegexOptions.IgnoreCase);
Htmlstring= Regex.Replace(Htmlstring, @"