wp_kses_html_error()WP 1.0.0

Handles parsing errors in wp_kses_hair().

The general plan is to remove everything to and including some whitespace, but it deals with quotes and apostrophes as well.

Хуков нет.

Возвращает

Строку.

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

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

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

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

Код wp_kses_html_error() WP 6.5.2

function wp_kses_html_error( $attr ) {
	return preg_replace( '/^("[^"]*("|$)|\'[^\']*(\'|$)|\S)*\s*/', '', $attr );
}