WordPress开发者和主题制作者的搜索引擎



wp_kses_stripslashes ›

Since1.0.0
已弃用n/a
wp_kses_stripslashes ( $string )
参数:
  • (string) $string String to strip slashes from.
    Required: Yes
返回:
  • (string) Fixed string with quoted slashes.
定义在:
文档:

Strips slashes from in front of quotes.

This function changes the character sequence " to just ". It leaves all other slashes alone. The quoting from preg_replace(//e) requires this.



源码

function wp_kses_stripslashes( $string ) {
	return preg_replace( '%\\\\"%', '"', $string );
}