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.

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\"

Search results for "escape_javascript()"

escape_javascript()

Escapes the given string for use in Javascript.

escape_javascript(string)