wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_specialchars is deprecated since version 2.8.0!
Alternative: esc_html()
Alternative: esc_html()
wp_specialchars › WordPress Function
Sincen/a
已弃用2.8.0
› wp_specialchars ( $text, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false )
参数: (4) |
|
查看: |
|
返回: |
|
定义在: |
|
文档: |
Legacy escaping for HTML blocks.
Related Functions: _wp_specialchars, wp_specialchars_decode, wp_cache_reset, _canonical_charset, wp_slash
源码
function wp_specialchars( $text, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { _deprecated_function( __FUNCTION__, '2.8.0', 'esc_html()' ); if ( func_num_args() > 1 ) { // Maintain back-compat for people passing additional arguments. return _wp_specialchars( $text, $quote_style, $charset, $double_encode ); } else { return esc_html( $text ); } }