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
-
$content
string Required -
String to strip slashes from.
Return
string Fixed string with quoted slashes.
Source
File: wp-includes/kses.php
.
View all references
function wp_kses_stripslashes( $content ) {
return preg_replace( '%\\\\"%', '"', $content );
}
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |