Extract text from html

vendiddy

Well-known member
Joined
May 14, 2006
Messages
64
Programming Experience
1-3
Hi all. I would like to extract only the text from a html file. I want to effectively do the same thing as loading the html file in a web browser, selecting Edit >> Select All, selecting Edit >> Copy, and pasting the contents into Notepad.

Thanks. :)
 
You can use the WebBrowser control and read WebBrowser1.Document.Body.InnerText, it's the same text as doing what you said.
 

Latest posts

Back
Top