Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (12 sloc) 0.477 kb

Escapes the value for insertion in Javascript output.

For example:

{{ value|escapejs }}

When the value is he'llo then the output is he\x27llo.

Internally, this calls z_utils:js_escape/1 to perform the escaping.

Note: when generating JSON output, be sure to use :ref:`filter-escapejson`, as JSON escaping is subtly different from JS escaping.

Jump to Line
Something went wrong with that request. Please try again.