_wp_specialchars Wordpress function


Converts a number of special characters into their HTML entities.



(string) $string The text which is to be encoded.
(mixed) $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 values; converting single quotes if set to 'single', double if set to 'double' or both if otherwise set. Default is ENT_NOQUOTES.
(string) $charset Optional. The character encoding of the string. Default is false.
(boolean) $double_encode Optional. Whether to encode existing html entities. Default is false.

Return Type:

(string) The encoded text with HTML entities.

Define At:


Wordpress Reference URL:


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×