js_escape – filter
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.
Parameters
- .
- ( 2.0.6 ) . .
- $safe_text
- ( string ) The text after it has been escaped. . . .
- $text
- ( string ) The text prior to being escaped. . . .