WordPress at a glance
function is not described

wp_specialchars() WP 1.0

Deprecated in 2.8.0. It is no longer supported and can be removed in future releases. Use esc_html() instead.

Legacy escaping for HTML blocks.

  • See: esc_html()

No Hooks.

Return

String. Escaped $string.

Usage

wp_specialchars( $string, $quote_style, $charset, $double_encode );
$string(string) (required)
String to escape.
$quote_style(string)
Unused.
Default: ENT_NOQUOTES
$charset(false/string)
Unused.
Default: false
$double_encode(false)
Whether to double encode. Unused.
Default: false

Code of wp specialchars: wp-includes/deprecated.php WP 5.2.2

<?php
function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) {
	_deprecated_function( __FUNCTION__, '2.8.0', 'esc_html()' );
	if ( func_num_args() > 1 ) { // Maintain back-compat for people passing additional arguments.
		$args = func_get_args();
		return call_user_func_array( '_wp_specialchars', $args );
	} else {
		return esc_html( $string );
	}
}