Uma área de pesquisa sobre o WordPress para devs e autores do tema



js_escape ›

Desde2.0.6
Obsoleton/a
apply_filters( 'js_escape', $safe_text, $text )
Parâmetros: (2)
  • (string) $safe_text The text after it has been escaped.
    Required: Yes
  • (string) $text The text prior to being escaped.
    Required: Yes
Definido em:
Codex:

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.





Fonte

return apply_filters( 'js_escape', $safe_text, $text );