JS去除html标签
var str = "
"; str = str.replace(/<[^>].*?>/g,""); alert(str);
原文地址:http://blog.csdn.net/aganar/article/details/6192920
C#去除html标签
public string RemoveHtmlTag(string Str) { return Regex.Replace(Str, "<[^>]*>", " "); } string str=f_ZhengWen.Value.ToString().Substring(0, 200); NeiRongJianJie.Value=RemoveHtmlTag(str);
原文地址:http://blog.sina.com.cn/s/blog_7307f8cb0101a86g.html