java - Replace All unprediction combination HTML tag using Jsoup -


i fetching html webpage , trying retreive data it.

i have html <h3><strong>title</strong><h3> want replace <h2>. but, find unexpected tags inside of content, example:
<h3><br/><strong>title</strong></h3>

how can remove empty html tags <p><br></p> , <h3><br /><h3> string?

you try using jsoup's .text() method on element grab text only, , them putting text inside h3.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -