wp_specialchars()
wp_specialchars( string $string, string $quote_style = ENT_NOQUOTES, false|string $charset = false, false $double_encode = false )
HTML块的旧转义。
Legacy escaping for HTML blocks.
说明(Description)
另请参见escu html()
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$string | (string) | 要退出的字符串。 |
$quote_style | (string) | 未使用。 |
$charset | (false | string) | 未使用。 |
$double_encode | (false) | 是否双重编码。未使用。 |
源码(Source)
wp_specialchars() 函数的代码位于 wp-includes/formatting.php.
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.8.0 | wp-includes/deprecated.php | 14 | 4 |
wp_specialchars() 为WP2原创文章,链接:https://www.wp2.cn/functions/wp_specialchars/