Created
June 17, 2015 18:13
-
-
Save csharpforevermore/61e576dfb56bcdbadae0 to your computer and use it in GitHub Desktop.
Remove HTML from string. From http://stackoverflow.com/questions/1038431/how-to-clean-html-tags-using-c-sharp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HtmlDocument doc = new HtmlDocument(); | |
doc.LoadHtml(html); | |
string s = doc.DocumentNode.SelectSingleNode("//body").InnerText; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment