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.JsStringEncQuotation |
StringUtil.JsStringEncQuotation.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StringUtil.JsStringEncQuotation[] |
StringUtil.JsStringEncQuotation.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,
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. |