WordPress at a glance
function is not described

wp_kses_stripslashes() WP 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.

No Hooks.


String. Fixed string with quoted slashes.


wp_kses_stripslashes( $string );
$string(string) (required)
String to strip slashes from.


Since 1.0.0 Introduced.

Code of wp_kses_stripslashes() WP 5.7.2

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