wp_kses_stripslashes( string $string ): 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.


Top ↑

Parameters

$string string Required
String to strip slashes from.

Top ↑

Return

string Fixed string with quoted slashes.


Top ↑

Source

File: wp-includes/kses.php. View all references

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

Top ↑

Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes

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