Package play.utils
Class HTML
- java.lang.Object
-
- play.utils.HTML
-
public class HTML extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HTML.HtmlCharacterEntityReferences
-
Constructor Summary
Constructors Constructor Description HTML()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
htmlEscape(java.lang.String input)
Turn special characters into HTML character references.
-
-
-
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.
<
).- Parameters:
input
- the (unescaped) input string- Returns:
- the escaped string
-
-