Class Escape

java.lang.Object
org.javalite.common.Escape

public final class Escape extends Object
Author:
Igor Polevoy on 1/15/15., Eric Nielsen
  • Method Details

    • html

      public static void html(StringBuilder sb, String html)
      Escapes HTML appending to StringBuilder.
      Parameters:
      sb - StringBuilder to append to
      html - input
    • html

      public static String html(String html)
      Escapes HTML.
      Parameters:
      html - input
      Returns:
      escaped HTML
    • xml

      public static void xml(StringBuilder sb, String xml)
      Escapes XML appending to StringBuilder.
      Parameters:
      sb - StringBuilder to append to
      xml - input
    • xml

      public static String xml(String xml)
      Escapes XML.
      Parameters:
      xml - input
      Returns:
      escaped XML