wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_kses_stripslashes › WordPress Function

Since1.0.0
Deprecatedn/a
wp_kses_stripslashes ( $content )
Parameters:
  • (string) $content String to strip slashes from.
    Required: Yes
Returns:
  • (string) Fixed string with quoted slashes.
Defined at:
Codex:

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.


Source

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