public static string GetHtmlText(string html)
        {
            try
            {
                HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
                doc.LoadHtml(html);
                return doc.DocumentNode.InnerText;
            }
            catch
            {
                return null;
            }
        }

 

使用第三方控件HtmlAgilityPack

相关文章:

  • 2021-12-11
  • 2021-09-29
  • 2022-01-11
  • 2021-10-18
  • 2022-12-23
猜你喜欢
  • 2021-07-12
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
相关资源
相似解决方案