play.utils
类 HTML

java.lang.Object
  继承者 play.utils.HTML

public class HTML
extends java.lang.Object


嵌套类摘要
static class HTML.HtmlCharacterEntityReferences
           
 
构造方法摘要
HTML()
           
 
方法摘要
static java.lang.String htmlEscape(java.lang.String input)
          Turn special characters into HTML character references.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HTML

public HTML()
方法详细信息

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

参数:
input - the (unescaped) input string
返回:
the escaped string


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