Is there a recommended way to escape <, >, \" and & characters when outputting HTML in plain Java code? (Other
<
>
\"
&
An alternative to Apache Commons: Use Spring's HtmlUtils.htmlEscape(String input) method.
HtmlUtils.htmlEscape(String input)