I have html in a set of elements so there may be other items like this
<b><a title="San Francisco/Twin Peaks-Lake Merced">Twin Peaks</a></b>
but I would like to clean it up with jsoup like this
<b>Twin Peaks</b>
Would using a whitelist be the best idea?
sorry for cluttering up stackoverflow, but unwrap solves the problem.
document.select("a").unwrap()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With