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:
  • 5: .

Description

Converts and fixes HTML entities.This function normalizes HTML entities. It will convert `AT&T` to the correct `AT&T`, `:` to `:`, `&#XYZZY;` to `&#XYZZY;` and so on. When `$context` is set to 'xml', HTML entities are converted to their code points. For example, `AT&T…&#XYZZY;` is converted to `AT&T…&#XYZZY;`.

Related Functions

wp_kses_named_entities, wp_kses_decode_entities, wp_kses_xml_named_entities, wp_kses_js_entities, wp_normalize_site_data

Top Google Results

User discussions

wpseek mobile