Class StringEscapeUtils
java.lang.Object
net.datenwerke.gxtdto.client.utils.StringEscapeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeAngleBrackets(String html) static StringescapeHTML(String html) Escapes all the HTML tags in a given stringstatic Stringstatic StringunescapeAngleBrackets(String text) static StringunescapeHTML(String text) Unescapes any HTML within the given string, i.e <Html> = <Html>static StringunescapeXml(String text)
-
Constructor Details
-
StringEscapeUtils
public StringEscapeUtils()
-
-
Method Details
-
escapeHTML
Escapes all the HTML tags in a given string- Parameters:
html- A string containg the HTML to be encoded- Returns:
- A string with all HTML tags escaped (i.e. <Html> <Html>)
-
escapeAngleBrackets
-
unescapeAngleBrackets
-
unescapeHTML
Unescapes any HTML within the given string, i.e <Html> = <Html>- Parameters:
text- The text containing the escaped HTML- Returns:
- the text with the HTML unescaped
-
escapeXml
-
unescapeXml
-