See also
escape, escapejs
Escapes the value for insertion in JSON output.
For example:
{{ value|escapejson }}
When the value is he'llo then the output is he\x27llo.
he'llo
he\x27llo
Internally, this calls z_utils:json_escape/1 to perform the escaping.
z_utils:json_escape/1