去html标签
public static string GetHtmlText(string html)
{
try
{
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(html);
return doc.DocumentNode.InnerText;
}
catch
{
return null;
}
}
使用第三方控件HtmlAgilityPack