c#过滤HTML 中的标签代码

来源:互联网 发布:合法的菲律宾网络博客 编辑:程序博客网 时间:2024/05/22 06:24

  private string FilterHTML(string contents)
    {
        string strTmp =string.Empty;
        strTmp = System.Text.RegularExpressions.Regex.Replace(contents, "<(.[^>]*)>", "");
        return strTmp;
    }

原创粉丝点击