public static string replaceImgUrl(string html)
    {
        if (html == null)
            return "";
        System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(@"\<IMG[^\>]+\>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
        html = regex.Replace(html, "");
        System.Text.RegularExpressions.Regex regex1 = new System.Text.RegularExpressions.Regex("<(.|\n)+?>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
        html = regex1.Replace(html, "");
        return html;
    }

相关文章: