Core Function
View Source on Trac ↗ wp_specialchars_decode()
wp_specialchars_decode( mixed $text, mixed $quote_style = ENT_NOQUOTES ) Converts a number of HTML entities into their special characters.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $text string | The text which is to be decoded. Required |
| mixed | (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. Required |
Return Value
(string)
The decoded text without HTML entities.
Function Information
Since Version
2.8.0
Source File
wp-includes/formatting.php
Advertisement