wp_kses_stripslashes()WP 1.0.0

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.

Хуков нет.


Строку. Fixed string with quoted slashes.


wp_kses_stripslashes( $content );
$content(строка) (обязательный)
String to strip slashes from.

Список изменений

С версии 1.0.0 Введена.

Код wp_kses_stripslashes() WP 6.4.3

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