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: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
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.