WordPress at a glance
function is not described

wp_kses_normalize_entities3() WP 2.7.0

Callback for wp_kses_normalize_entities() for regular expression.

This function helps wp_kses_normalize_entities() to only accept valid Unicode numeric entities in hex form.

No Hooks.


String. Correctly encoded entity


wp_kses_normalize_entities3( $matches );
$matches(array) (required)
preg_replace_callback() matches array

Code of wp kses normalize entities3: wp-includes/kses.php VER 5.0.3

function wp_kses_normalize_entities3($matches) {
	if ( empty($matches[1]) )
		return '';

	$hexchars = $matches[1];
	return ( ! valid_unicode( hexdec( $hexchars ) ) ) ? "&amp;#x$hexchars;" : '&#x'.ltrim($hexchars,'0').';';