wp_kses_html_error

函数
wp_kses_html_error ( $string )
参数
  • (string) $string
    Required:
返回值
  • (string)
定义位置
相关方法
wp_kses_hairwp_kses_attrwp_get_theme_errorwp_kses_versionwp_send_json_error
引入
1.0.0
弃用
-

Handles parsing errors in `wp_kses_hair()`.

The general plan is to remove everything to and including some whitespace,
but it deals with quotes and apostrophes as well.

function wp_kses_html_error( $string ) {
	return preg_replace( '/^("[^"]*("|$)|'[^']*('|$)|S)*s*/', '', $string );
}