public static final class StringEscapeUtils.Builder extends Object
Convenience wrapper for StringBuilder
providing escape methods.
Example:
new Builder(ESCAPE_HTML4) .append("<p>") .escape("This is paragraph 1 and special chars like & get escaped.") .append("</p><p>") .escape("This is paragraph 2 & more...") .append("</p>") .toString()
Modifier and Type | Method and Description |
---|---|
StringEscapeUtils.Builder |
append(String input)
Literal append, no escaping being done.
|
String |
toString()
Return the escaped string.
|
public StringEscapeUtils.Builder append(String input)
input
- the String to appendthis
, to enable chainingCopyright © 2005–2018. All rights reserved.