Summery Summery

Converts all numeric HTML entities to their named counterparts.

Syntax Syntax

wp_kses_decode_entities( string $string )

Description Description

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

Parameters Parameters


(string) (Required) Content to change entities.

Return Return

(string) Content after decoded entities.

Source Source

File: wp-includes/kses.php

 * 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.


Changelog Changelog

Version Description
1.0.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.