wp_kses_js_entities()WP 1.0.0

Устарела с версии 4.7.0 Officially dropped security support for Netscape 4.. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Removes the HTML JavaScript entities found in early versions of Netscape 4.

Previously, this function was pulled in from the original import of kses and removed a specific vulnerability only existent in early version of Netscape 4. However, this vulnerability never affected any other browsers and can be considered safe for the modern web.

The regular expression which sanitized this vulnerability has been removed in consideration of the performance and energy demands it placed, now merely passing through its input to the return.

Хуков нет.

Возвращает

Строку.

Использование

wp_kses_js_entities( $content );
$content(строка) (обязательный)
-

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

С версии 1.0.0 Введена.
Устарела с 4.7.0 Officially dropped security support for Netscape 4.

Код wp_kses_js_entities() WP 6.4.3

function wp_kses_js_entities( $content ) {
	_deprecated_function( __FUNCTION__, '4.7.0' );

	return preg_replace( '%&\s*\{[^}]*(\}\s*;?|$)%', '', $content );
}