attribute_escape( string $text ): string

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

Escaping for HTML attributes.

Description

See also

Parameters

$textstringrequired

Return

string

Source

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

Changelog

VersionDescription
2.8.0Use esc_attr()
2.0.6Introduced.

User Contributed Notes

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