string StrHavehtml="<html>Test Delete the <span>HTML</span> Code!</html>";
string StrNohtml=System.Text.RegularExpressions.Regex.Replace(StrHavehtml, "<[^>]+>", "");
string StrHavehtml="<html>Test Delete the <span>HTML</span> Code!</html>";
string StrNohtml=System.Text.RegularExpressions.Regex.Replace(StrHavehtml, "<[^>]+>", "");
转载于:https://www.cnblogs.com/Miler/archive/2008/07/18/1246077.html