WordPress at a glance
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.

Usage

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

	return $safe_text;
}
$safe_text(string)
The text after it has been escaped.
* @param string $text The text prior to being escaped.
$text
-

Where the hook is called

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

Where the hook is used (in WP core)

Does not used.