wp_kses_stripslashes()
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() wp kses stripslashes code WP 6.7.1
function wp_kses_stripslashes( $content ) { return preg_replace( '%\\\\"%', '"', $content ); }