Strip HTML using HtmlAgilityPack
public static string StripHtml(this string value) { HtmlDocument htmlDoc = new HtmlDocument(); htmlDoc.LoadHtml(value); if (htmlDoc == null) return value; return htmlDoc.DocumentNode.InnerText; }
Source: Strip HTML using HtmlAgilityPack