WordPress at Your Fingertips
filter is not described

js_escape filter-hook . WP 2.0.6

Filters a string cleaned and escaped for output in JavaScript.

Text passed to esc_js() is stripped of invalid or special characters, and properly slashed for output.


add_filter( 'js_escape', 'filter_function_name_6079', 10, 2 );
function filter_function_name_6079( $safe_text, $text ){
	// filter...

	return $safe_text;
The text after it has been escaped.
The text prior to being escaped.


Since 2.0.6 Introduced.

Where the hook is called

wp-includes/formatting.php 4467
return apply_filters( 'js_escape', $safe_text, $text );

Where in WP core the hook is used WordPress

Usage not found.