Filter hook 'js_escape'
in WP Core File wp-includes/formatting.php at line 4658
Description
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.
Occurrences
Filename |
Line Number |
wp-includes/formatting.php |
4658 |
Parameters
Type |
Name |
Description |
string |
$safe_text |
The text after it has been escaped. |
string |
$text |
The text prior to being escaped. |
PHP Doc
/**
* 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.
*
* @since 2.0.6
*
* @param string $safe_text The text after it has been escaped.
* @param string $text The text prior to being escaped.
*/