Escape single quotes, specialchar double quotes, and fix line endings.
Description
The filter ‘js_escape’ is also applied by esc_js() .
See also
Parameters
$text
stringrequired- The text to be escaped.
Source
function js_escape( $text ) {
_deprecated_function( __FUNCTION__, '2.8.0', 'esc_js()' );
return esc_js( $text );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.