Class HTML
java.lang.Object
org.webpieces.templating.impl.html.HTML
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringhtmlEscape(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
-