wp_specialchars_decode


wp_specialchars_decode ( $text, $quote_style = ENT_NOQUOTES )

Parameters:
  • (string) text The text which is to be decoded.
  • (string|int) quote_style Optional. Converts double quotes if set to ENT_COMPAT, both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. Also compatible with old _wp_specialchars() values; converting single quotes if set to 'single', double if set to 'double' or both if otherwise set. Default is ENT_NOQUOTES.
Returns:
  • (string) The decoded text without HTML entities.
Defined at:

Description

Converts a number of HTML entities into their special characters.Specifically deals with: `&`, `<`, `>`, `"`, and `'`. `$quote_style` can be set to ENT_COMPAT to decode `"` entities, or ENT_QUOTES to do both `"` and `'`. Default is ENT_NOQUOTES where no quotes are decoded.

Related Functions

wp_specialchars, _wp_specialchars, wp_cache_decr, wp_json_file_decode, wp_cache_close

Top Google Results

User discussions

wpseek mobile