C#替换HTML标签
public string RemoveHtml(string str)
{
string temp = Regex.Replace(str, "<[^>]*>", "");
temp = temp.Replace(" ", " ").Replace("”", "”").Replace("“","“");
return temp ;
}
{
string temp = Regex.Replace(str, "<[^>]*>", "");
temp = temp.Replace(" ", " ").Replace("”", "”").Replace("“","“");
return temp ;
}
浙公网安备 33010602011771号