Protect your apps from cross-site scripting (XSS) attacks
See the original posting on IBM developerWorks – Java
One of the most common techniques for cross-site scripting attacks is
injecting code into a web page. This code snippet shows you how to use escape
sequences so that any injected code can't run.