Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / HTML

Remove all the HTML tags and display a plain text only inside (in case XML is not well formed)

5.00/5 (4 votes)
19 Dec 2010CPOL 20.7K  
How about loading it into an XmlDocument and getting the InnerText? (Provided the HTML is well-formed XML, of course.)
How about loading it into an XmlDocument and getting the InnerText? (Provided the HTML is well-formed XML, of course.)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)