wpseek.com
A WordPress-centric search engine for devs and theme authors



attribute_escape › WordPress Function

Since2.0.6
Deprecated2.8.0
attribute_escape ( $text )
Parameters:
  • (string) $text
    Required: Yes
See:
Returns:
  • (string)
Defined at:
Codex:

Escaping for HTML attributes.



Source

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