public final class Escape extends Object
Modifier and Type | Method and Description |
---|---|
static String |
html(String html)
Escapes HTML.
|
static void |
html(StringBuilder sb,
String html)
Escapes HTML appending to StringBuilder.
|
static String |
json(String json)
Escapes JSON.
|
static void |
json(StringBuilder sb,
String json)
Escapes JSON appending to StringBuilder.
|
static String |
xml(String xml)
Escapes XML.
|
static void |
xml(StringBuilder sb,
String xml)
Escapes XML appending to StringBuilder.
|
public static void html(StringBuilder sb, String html)
sb
- StringBuilder to append tohtml
- inputpublic static String html(String html)
html
- inputpublic static void json(StringBuilder sb, String json)
sb
- StringBuilder to append tojson
- inputpublic static String json(String json)
json
- inputpublic static void xml(StringBuilder sb, String xml)
sb
- StringBuilder to append toxml
- inputCopyright © 2016 JavaLite. All rights reserved.