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



wp_kses_stripslashes › WordPress Function

Since1.0.0
已弃用n/a
wp_kses_stripslashes ( $content )
参数:
  • (string) $content 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( $content ) {
	return preg_replace( '%\\\\"%', '"', $content );
}