WordPress at a glance
function is not described

wp_kses_normalize_entities2() WP 1.0.0

Callback for wp_kses_normalize_entities() regular expression.

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

No Hooks.

Return

String. Correctly encoded entity.

Usage

wp_kses_normalize_entities2( $matches );
$matches(array) (required)
preg_replace_callback() matches array.

Changelog

Since 1.0.0 Introduced.

Code of wp kses normalize entities2: wp-includes/kses.php WP 5.2.2

<?php
function wp_kses_normalize_entities2( $matches ) {
	if ( empty( $matches[1] ) ) {
		return '';
	}

	$i = $matches[1];
	if ( valid_unicode( $i ) ) {
		$i = str_pad( ltrim( $i, '0' ), 3, '0', STR_PAD_LEFT );
		$i = "&#$i;";
	} else {
		$i = "&amp;#$i;";
	}

	return $i;
}