Package | Description |
---|---|
freemarker.template.utility |
Various classes used by core FreeMarker code but might be useful outside of it too.
|
Modifier and Type | Method and Description |
---|---|
static StringUtil.JsStringEncCompatibility |
StringUtil.JsStringEncCompatibility.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StringUtil.JsStringEncCompatibility[] |
StringUtil.JsStringEncCompatibility.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
StringUtil.jsStringEnc(java.lang.String s,
StringUtil.JsStringEncCompatibility compatibility)
Escapes a
String to be safely insertable into a JSON or JavaScript string literal; for more see
jsStringEnc(s, compatibility, null) . |
static java.lang.String |
StringUtil.jsStringEnc(java.lang.String s,
StringUtil.JsStringEncCompatibility compatibility,
StringUtil.JsStringEncQuotation quotation)
Escapes a
String to be safely insertable into a JavaScript or a JSON string literal, and if the 3rd
argument is true , also adds quotation marks around it. |