// 除去所有在html元素中标记
    using System.Text.RegularExpressions;

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

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

相关文章: