WordPress at a glance
function is not described

wp_kses_decode_entities() WP 1.0.0

Convert all entities to their character counterparts.

This function decodes numeric HTML entities (A and A). It doesn't do anything with other entities like ä, but we don't need them in the URL protocol whitelisting system anyway.

No Hooks.


String. Content after decoded entities


wp_kses_decode_entities( $string );
$string(string) (required)
Content to change entities

Code of wp kses decode entities: wp-includes/kses.php VER 5.0.3

function wp_kses_decode_entities($string) {
	$string = preg_replace_callback('/&#([0-9]+);/', '_wp_kses_decode_entities_chr', $string);
	$string = preg_replace_callback('/&#[Xx]([0-9A-Fa-f]+);/', '_wp_kses_decode_entities_chr_hexdec', $string);

	return $string;