wp_specialchars [ WordPress Function ]
wp_specialchars ( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false )
| See: |
|
| Defined at: |
|
Benzer Fonksiyonlar: _wp_specialchars, wp_specialchars_decode, wp_cache_reset, wp_kses_hair, wp_get_nocache_headers
Escaping for HTML blocks.
Source
<?php
function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) {
_deprecated_function( __FUNCTION__, '2.8', 'esc_html()' );
if ( func_num_args() > 1 ) { // Maintain backwards compat for people passing additional args
$args = func_get_args();
return call_user_func_array( '_wp_specialchars', $args );
} else {
return esc_html( $string );
}
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- wp_specialchars - WordPress Codex
Description. This function is deprecated as of WordPress 2.8.0. Please use esc_html instead. Converts a number of special characters into their HTML entities.
codex.wordpress.org - WordPress & Empty Searches - Accessites.org
Jan 9, 2009 ... echo trim(wp_specialchars($s,1));else echo ' ';? ... WordPress's wp_specialchars( ) function allows me to process the search input with all single ...
accessites.org - Use wp_specialchars instead of htmlentities on Last Comments ...
Hi, why isn't wp_specialchars used in the Last Comments widget? wp_specialchars is ok with accents because you don't have to specify the charset . Thanks.
flatpress.org - Re: [wp-hackers] wp_specialchars() vs ... - Google Groups
Re: [wp-hackers] wp_specialchars() vs attribute_escape() ( now esc_attr() ) and quote entity-encoding. I recently put up a WordPress based site for Harvard Law, ...
groups.google.com