java - extract paragraphs from HTML page -


Using JSOU, I want to remove all paragraphs from an HTML page, which means & lt; P & gt; / code> and & lt; / P & gt; .

How do I complete it?

You can just:

  myDocument.getElementsByTag ( 'P')   

Then you can iterate over the returned elements and get your data / text / text itself / whatever you think That's the most relevant for what you want to do.



Comments