play.utils
Class HTML
java.lang.Object
play.utils.HTML
public class HTML
- extends Object
|
Constructor Summary |
HTML()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTML
public HTML()
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
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly