Escapes characters used in JavaScript strings. Use json_script instead.
Warning
Do not use this filter. It is not safe.
See Adam Johnson’s Safely Including Data for JavaScript in a Django Template for a detailed explanation of how to safely include dynamic data for JavaScript processing.