escape_javascript()
Usage
escape_javascript(string)
Description
Escapes the given string for use in Javascript.
Example
${escape_javascript('This is a "test"')}
results in
This is a \"test\"
You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.
Usage
escape_javascript(string)
Description
Escapes the given string for use in Javascript.
Example
${escape_javascript('This is a "test"')}
results in
This is a \"test\"
Escapes the given string for use in Javascript.
escape_javascript(string)