play.utils
Class HTML

java.lang.Object
  extended by play.utils.HTML

public class HTML
extends java.lang.Object


Nested Class Summary
static class HTML.HtmlCharacterEntityReferences
           
 
Constructor Summary
HTML()
           
 
Method Summary
static java.lang.String htmlEscape(java.lang.String input)
          Turn special characters into HTML character references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTML

public HTML()
Method Detail

htmlEscape

public static java.lang.String htmlEscape(java.lang.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


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly