剔除editor编辑器中的HTML标签

1.剔除editor编辑器中的HTML标签

 public static string striphtml(string strhtml)
    {
        string stroutput = strhtml;
        Regex regex = new Regex(@"<[^>]+>|</[^>]+>");

        stroutput = regex.Replace(stroutput, "");
        return stroutput;

    }

 

posted @ 2016-11-03 10:36  圣叹&北京  阅读(864)  评论(0编辑  收藏  举报