Converts the specified string into a valid string constant of JavaScript. In particular, this includes:
Character | Escape |
\ |
\\ |
' |
\' |
" |
\" |
0x0A |
\n |
0x0D |
\r |
0x09 |
\t |
\uxxxx
format
parameter.
str
format
When this parameter is not specified, the output format associated with
the current template will be used by default. That is the same as the call:
encodeJScriptString(str, output.format)
If this parameter is null
, the ASCII encoding will be assumed.
That is, all characters beyond the interval:
0x20 <= c < 0x80
GOMContext.output,
OutputFormat.encoding