> OWASP XSS (Cross Site Scripting) Prevention Cheat Sheet>考虑从Apache Commons Lang使用StringEscapeUtils.escapeHtml()>或从Spring使用HtmlUtils.htmlEscape()> XSS attack prevention> XSS prevention in JSP/Servlet web application
StringEscapeUtils.escapeHtml()
HtmlUtils.htmlEscape()