1.剔除editor编辑器中的HTML标签
public static string striphtml(string strhtml)
{
string stroutput = strhtml;
Regex regex = new Regex(@"<[^>]+>|</[^>]+>");
stroutput = regex.Replace(stroutput, "");
return stroutput;
}
1.剔除editor编辑器中的HTML标签
public static string striphtml(string strhtml)
{
string stroutput = strhtml;
Regex regex = new Regex(@"<[^>]+>|</[^>]+>");
stroutput = regex.Replace(stroutput, "");
return stroutput;
}
转载于:https://www.cnblogs.com/stjwy/p/6025632.html