public static string StripHTML(string strHtml)
{
string strOutput = strHtml;
Regex regex = new Regex(@"<[^>]+>|</[^>]+>");
strOutput = regex.Replace(strOutput, "");
return strOutput;
}
原文地址:http://www.cnblogs.com/lzhp/p/3812316.html