OWASP Java HTML Sanitizer is an HTML sanitizer sponsored by OWASP written in Java that takes a string of HTML and whitelists tags and attributes to produce a string of safe HTML.
It's gone through multiple rounds of attack review and fits the same niche as AntiSAMY.
Full disclosure: I am a maintainer.