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

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -