Pros and Cons of Java HTML to XML cleaners
- by cjavapro
I am looking to allow HTML emails (and other HTML uploads) without letting in scripts and stuff. I plan to have a white list of safe tags and attributes as well as a whitelist of CSS tags and value regexes (to prevent automatic return receipt).
I asked a question: Parse a badly formatted XML document (like an HTML file)
I found there are many…