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 |
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 xml(StringBuilder sb, String xml)
sb
- StringBuilder to append toxml
- inputCopyright © 2019 JavaLite. All rights reserved.