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
Post a Comment