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

Search results for "escape_json()"

escape_json()

Escapes the given string for use in JSON.

escape_json(string)