Yeah, I used Flying Saucer:
<a href="https://xhtmlrenderer.dev.java.net/" rel="nofollow">https://xhtmlrenderer.dev.java.net/</a><p>Only, I needed to parse plain HTML (not just XHTML) so I'm using TagSoup as the replacement parser:
<a href="http://home.ccil.org/~cowan/XML/tagsoup/" rel="nofollow">http://home.ccil.org/~cowan/XML/tagsoup/</a><p>This combination is awesome.