public string StripHTML(string strHtml)
{
string strOutput = strHtml;
Regex regex = new Regex(@"<[^>]+>|]+>");
strOutput = regex.Replace(strOutput, "");
return strOutput;
}
public string StripHTML(string strHtml)
{
string strOutput = strHtml;
Regex regex = new Regex(@"<[^>]+>|]+>");
strOutput = regex.Replace(strOutput, "");
return strOutput;
}
转载于:https://www.cnblogs.com/mxh691/archive/2008/06/16/1222833.html