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.5.2

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