c#后台替换html标签的方法

 public static string ReplaceHtmlTag(string html)
        {
             string strText = System.Text.RegularExpressions.Regex.Replace(html, "<span>", "");
             strText = System.Text.RegularExpressions.Regex.Replace(strText, "</span>", "");
             strText = System.Text.RegularExpressions.Regex.Replace(strText,"</br>","");
            return strText;
        }
posted @ 2015-09-21 13:10  小A爱吧  阅读(1020)  评论(0编辑  收藏  举报