This function has been deprecated. Use esc_attr() instead.

attribute_escape( string $text )

Escaping for HTML attributes.


Description

See also


Parameters

$text

(string) (Required)


Return

(string)


Source

File: wp-includes/deprecated.php

function attribute_escape( $text ) {
	_deprecated_function( __FUNCTION__, 'WP-2.8.0', 'esc_attr()' );
	return esc_attr( $text );
}


Changelog

Changelog
Version Description
WP-2.8.0 Use esc_attr()
WP-2.0.6 Introduced. This function has been deprecated. Use esc_attr() instead.