Package org.javalite.common
Class Escape
java.lang.Object
org.javalite.common.Escape
- Author:
- Igor Polevoy on 1/15/15., Eric Nielsen
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Escapes HTML.static void
html(StringBuilder sb, String html)
Escapes HTML appending to StringBuilder.static String
Escapes XML.static void
xml(StringBuilder sb, String xml)
Escapes XML appending to StringBuilder.
-
Method Details
-
html
Escapes HTML appending to StringBuilder.- Parameters:
sb
- StringBuilder to append tohtml
- input
-
html
Escapes HTML.- Parameters:
html
- input- Returns:
- escaped HTML
-
xml
Escapes XML appending to StringBuilder.- Parameters:
sb
- StringBuilder to append toxml
- input
-
xml
Escapes XML.- Parameters:
xml
- input- Returns:
- escaped XML
-