WordPress开发者和主题制作者的搜索引擎



js_escape ›

Since2.0.6
已弃用n/a
apply_filters( 'js_escape', $safe_text, $text )
参数: (2)
  • (string) $safe_text The text after it has been escaped.
    Required: Yes
  • (string) $text The text prior to being escaped.
    Required: Yes
定义在:
文档:

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.





源码

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