spring-framework / org.springframework.web.util / HtmlUtils / <init>

<init>

HtmlUtils()

Utility class for HTML escaping. Escapes and unescapes based on the W3C HTML 4.01 recommendation, handling character entity references.

Reference: http://www.w3.org/TR/html4/charset.html

For a comprehensive set of String escaping utilities, consider Apache Commons Lang and its StringEscapeUtils class. We are not using that class here to avoid a runtime dependency on Commons Lang just for HTML escaping. Furthermore, Spring's HTML escaping is more flexible and 100% HTML 4.0 compliant.

Author
Juergen Hoeller

Author
Martin Kersten

Author
Craig Andrews

Since
01.03.2003