I\'m looking into some XSS prevention in my Java application.
I currently have custom built routines that will escape any HTML stored in the database for safe displa
not built-in, but check out the owasp esapi filter, it should do what you're looking for and more. It is a great open source security library written by the smart guys&girls at Owasp ("Open Web Application Security Project").