Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

wp_kses_normalize_entities2( array $matches )

Callback for wp_kses_normalize_entities() regular expression.


Description Description

This function helps wp_kses_normalize_entities() to only accept 16-bit values and nothing more for &#number; entities.


Parameters Parameters

$matches

(array) (Required) preg_replace_callback() matches array


Top ↑

Return Return

(string) Correctly encoded entity


Top ↑

Source Source

File: wp-includes/kses.php

				$ok = false;
			}
			if ( $value < $checkvalue ) {
				$ok = false;
			}
			break;

		case 'valueless':
			// The valueless check makes sure if the attribute has a value
			// (like `<a href="blah">`) or not (`<option selected>`). If the given value
			// is a "y" or a "Y", the attribute must not have a value.
			// If the given value is an "n" or an "N", the attribute must have a value.

			if ( strtolower( $checkvalue ) != $vless ) {

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.