Package play.utils
Class HTML
java.lang.Object
play.utils.HTML
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
htmlEscape
(String input) Turn special characters into HTML character references.
-
Constructor Details
-
HTML
public HTML()
-
-
Method Details
-
htmlEscape
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.
<
).- Parameters:
input
- the (unescaped) input string- Returns:
- the escaped string
-