wp_kses_stripslashes

函数


wp_kses_stripslashes ( $string )
参数
  • (string)
    $string
    String to strip slashes from.
    Required:
返回值
  • (string) Fixed string with quoted slashes.
定义位置
  • wp-includes/kses.php
    , line 1739
引入
1.0.0
弃用

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 );
}