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

attribute_escape( string $text ): string

Escaping for HTML attributes.


Description

Top ↑

See also


Top ↑

Parameters

$text string Required

Top ↑

Return

string


Top ↑

Source

File: wp-includes/deprecated.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
2.8.0 Use esc_attr()
2.0.6 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.