wp_kses_html_error()
wp_kses_html_error( string $string ) 处理wp_kses_hair()中的…
wp_kses_html_error( string $string )
处理wp_kses_hair()中的分析错误。
		Handles parsing errors in wp_kses_hair().
	
目录锚点:#说明#参数#源码
说明(Description)
总的计划是删除所有空格,包括一些空格,但它也处理引号和撇号。
参数(Parameters)
| 参数 | 类型 | 说明 | 
|---|---|---|
| $string | (string) | 
源码(Source)
/**
 * 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.
 *
 * @since 1.0.0
 *
 * @param string $string
 * @return string
 */
function wp_kses_html_error($string) {
	return preg_replace('/^("[^"]*("|$)|'[^']*('|$)|S)*s*/', '', $string);
}| 更新版本 | 源码位置 | 使用 | 被使用 | 
|---|---|---|---|
| 1.0.0 | wp-includes/kses.php | 19 | 11 | 
类别:WordPress 函数手册、 
		本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!