attribute_escape
Escaping for HTML attributes.
Description
(string) attribute_escape( (string) $text );
Returns (string)
Parameters (1)
- 0. $text (string)
- The text.
Usage
if ( !function_exists( 'attribute_escape' ) ) { require_once ABSPATH . WPINC . '/deprecated.php'; } // The text. $text = ''; // NOTICE! Understand what this does before running. $result = attribute_escape($text);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/deprecated.php
- function attribute_escape( $text ) {
- _deprecated_function( __FUNCTION__, '2.8.0', 'esc_attr()' );
- return esc_attr( $text );
- }