escape_json()
Usage
escape_json(string)
Description
Escapes the given string for use in JSON
Example
${escape_json('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_json(string)
Description
Escapes the given string for use in JSON
Example
${escape_json('This is a "test"')}
results in
This is a \"test\"
Escapes the given string for use in JSON.
escape_json(string)