wp_kses_normalize_entities
wp_kses_normalize_entities ( $content, $context = 'html' )
Parameters:- (string) content Content to normalize entities.
- (string) context Context for normalization. Can be either 'html' or 'xml'. Default 'html'.
Returns:- (string) Content with normalized entities.
Defined at:Change Log: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: —
Description
Converts and fixes HTML entities.This function normalizes HTML entities. It will convert `AT&T` to the correct
`AT&T`, `:` to `:`, `YZZY;` to `&#XYZZY;` and so on.
When `$context` is set to 'xml', HTML entities are converted to their code points. For
example, `AT&T…YZZY;` is converted to `AT&T…&#XYZZY;`.