Dear All, I need to convert an HTML page to text.It should display the content of HTML page in text without changing the format.Like if the html page contains an copyright symbol then the corresponding one should be converted to the same when converted to text format.
Doing this without changing the format is not possible, because plain text does not contain formatting instructions. I'd look into a library that can convert HTML to XML (like TagSoup or NekoXNI), and then use the SAX API to extract all text from the XML.
expectation is the root of all heartache - shakespeare. tiny ad: