wp_kses_stripslashes( string $string )

Strips slashes from in front of quotes.


Description

This function changes the character sequence \" to just ". It leaves all other slashes alone. It’s really weird, but the quoting from preg_replace(//e) seems to require this.


Parameters

$string

(string) (Required) String to strip slashes


Return

(string) Fixed string with quoted slashes


Source

File: wp-includes/kses.php

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


Changelog

Changelog
Version Description
WP-1.0.0 Introduced.