Recommended method for escaping HTML in Java

| No Comments

Here's a story that I read:


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


via Pocket http://stackoverflow.com/questions/1265282/recommended-method-for-escaping-html-in-java

Leave a comment