wp_specialchars
- wp_specialchars is deprecated since version 2.8.0!
Alternative: esc_html()
wp_specialchars ( $text, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false )
Parameters:- (string) text Text to escape.
- (string) quote_style Unused.
- (false|string) charset Unused.
- (false) double_encode Whether to double encode. Unused.
See:Returns:- (string) Escaped `$text`.
Defined at: - Introduced in WordPress: —
- Deprecated in WordPress: 2.8.0
Description
Legacy escaping for HTML blocks.