Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Strip HTML using HtmlAgilityPack
public static string StripHtml(this string value)
HtmlDocument htmlDoc = new HtmlDocument();
if (htmlDoc == null)
return value;
return htmlDoc.DocumentNode.InnerText;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment