Package play.utils

Class HTML

java.lang.Object
play.utils.HTML

public class HTML extends Object
  • Constructor Details

    • HTML

      public HTML()
  • Method Details

    • htmlEscape

      public static String htmlEscape(String input)
      Turn special characters into HTML character references. Handles complete character set defined in HTML 4.01 recommendation.

      Escapes all special characters to their corresponding entity reference (e.g. <).

      Reference: http://www.w3.org/TR/html4/sgml/entities.html

      Parameters:
      input - the (unescaped) input string
      Returns:
      the escaped string