/// <summary>
/// //过滤Html标记
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public static string filterHtml(string input)
{
Regex r = new Regex(@"<br((?!>).)*>", RegexOptions.IgnoreCase);
string ret = r.Replace(input, "\r\n");//替换换行符
r = new Regex(@"s*((<script((?!>).)*>((?!</)[\S\s])*</script>)|(<((?!>).)*>))\s*");//替换Script脚本和Html标记
ret = r.Replace(ret, "");
ret = ret.Replace(" "," ");
ret = ret.Trim();
return ret;
}