_wp_specialchars Wordpress function


Description:

Converts a number of special characters into their HTML entities.


Syntax:


Arguments:

(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:

wp-includes/formatting.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/_wp_specialchars


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