I download tika-core and tika-parser libraries, but I could not find the example codes to parse HTML documents to string. I have to get rid of all html tags of source of a web page. What can I do? How do I code that using Apache Tika?
I download tika-core and tika-parser libraries, but I could not find the example codes
Share
Do you want a plain text version of a html file? If so, all you need is something like:
The BodyContentHandler, when created with no constructor arguments or with a character limit, will capture the text (only) of the body of the html and return it to you.