This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also
Use any of these functions
Escape single quotes. Convert double quotes. Fix line endings.
The filter 'js_escape' is also applied here.
js_escape has been deprecated since 2.8. Use esc_js instead.
<?php js_escape( $text ) ?>
- (string) (required) The text to be escaped.
- Default: None
- Escaped text.
js_escape() is located in wp-includes/formatting.php.