'StringEscapeUtils' is a java class in the Text subproject of the Commons project from Apache Software Foundation (ASF). The class was formerly in the Lang subproject. The purpose of the class is to escape and unescape strings for Java, Java Script, HTML and XML. Use this tag for questions regarding the StringEscapeUtils class.
StringEscapeUtils
is a java class in the Apache Commons Text project. The class was originally part of the Commons Lang project but was migrated to the Commons Text project. The class is used to convert characters in strings to their equivalent entity and vice-versa. This is known as escaping (or unescaping) characters. For example the [HTML] entity for the &
(ampersand) character is &
. Hence class StringEscapeUtils
contains methods for converting &
to &
as well as methods for converting &
to &
. The class also contains methods for escaping and unescaping characters in JavaScript and XML as well as HTML.