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.

Return

String. Fixed string with quoted slashes.

Usage

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

Changelog

Since 1.0.0 Introduced.

wp_kses_stripslashes() code WP 6.5.2

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