Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(htmlstring); string text = doc.DocumentNode.InnerText; text = Regex.Replace(text, @"\s+", " ").Trim();
No comments:
Post a Comment