I'm using JSoup 1.6.2. I have this HTML ...
<a title="Subscribe to RSS feeds" href="http://domain/city/RSS" style="float:right; margin-left:10px;"">
Notice the stray quote right before the end of the tag. I was hoping JSoup could clean that up somehow. I try and make everything right by running ...
final org.jsoup.nodes.Document doc = Jsoup.parse(html);
The result is
<a title="Subscribe to RSS feeds" href="http://domain/city/RSS" style="float:right; margin-left:10px;" "="">
which is still not well-formed. Is there a way I can take the badly formed HTMl and make it well-formed with JSoup? Barring that, is there another HTML tidy-upper that can do the job for the above example but also allow me to access the resulting HTML as either a String or a org.w3c.dom.Document object?