C# 去除所有的html标签

/// <summary>
/// 去除所有的html标签
/// </summary>
/// <param name="strhtml"></param>
/// <returns></returns>
public static string Removestriphtml(string strhtml)
{
string stroutput = strhtml;
Regex regex = new Regex(@"<[^>]+>|</[^>]+>");
stroutput = regex.Replace(stroutput, "");
return stroutput;
}

C# 去除所有的html标签,布布扣,bubuko.com

C# 去除所有的html标签

上一篇:[转]ASP.NET MVC Domain Routing


下一篇:IE和firefox火狐在JS、css兼容区别