esc_attr_e
esc_attr_e ( $text, $domain = 'default' )
Parameters:- (string) text Text to translate.
- (string) domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
Defined at: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
Description
Displays translated text that has been escaped for safe use in an attribute.Encodes `< > & " '` (less than, greater than, ampersand, double quote, single quote).
Will never double encode entities.
If you need the value for use in PHP, use esc_attr__().