Class StringEscapeUtils

java.lang.Object
net.datenwerke.gxtdto.client.utils.StringEscapeUtils

public class StringEscapeUtils extends Object
  • Constructor Details

    • StringEscapeUtils

      public StringEscapeUtils()
  • Method Details

    • escapeHTML

      public static String escapeHTML(String html)
      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

      public static String escapeAngleBrackets(String html)
    • unescapeAngleBrackets

      public static String unescapeAngleBrackets(String text)
    • unescapeHTML

      public static String unescapeHTML(String text)
      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

      public static String escapeXml(String text)
    • unescapeXml

      public static String unescapeXml(String text)