取出html标签 (适用于html中的<META name=description content="")

来源:互联网 发布:聚推吧软件 编辑:程序博客网 时间:2024/04/30 04:51

 

过滤content中的内容

public string RexHtml(string str)
        {
            return Regex.Replace(str, "<[^>]+>|[^/u4e00-/u9fa5,^//,,^//。]", "");
        }