js_escape()
最后更新于:2021-11-27 12:37:24
js_escape( string$text)Escape single quotes, specialchar double quotes, and fix line endings.
参数
- $text
-
(string) (Required) The text to be escaped.
响应
(string) Escaped text.
源文件
文件: gc-includes/deprecated.php
function js_escape( $text ) {
_deprecated_function( __FUNCTION__, '2.8.0', 'esc_js()' );
return esc_js( $text );
}