wp_kses_stripslashes( string $content ): string

Strips slashes from in front of quotes.

Description

This function changes the character sequence \" to just ". It leaves all other slashes alone. The quoting from preg_replace(//e) requires this.

Parameters

$contentstringrequired
String to strip slashes from.

Return

string Fixed string with quoted slashes.

Source

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

Changelog

VersionDescription
1.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.