esc_attr_e() – Display translated text that has been escaped for safe use in an attribute.
You appear to be a bot. Output may be restricted
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__().
Usage
esc_attr_e( $text, $domain );
Parameters
- $text
- ( string ) required – Text to translate.
- $domain
- ( string ) optional default: default – Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
Returns
void
Source
File name: wordpress/wp-includes/l10n.php
Lines:
1 to 3 of 3
function esc_attr_e( $text, $domain = 'default' ) { echo esc_attr( translate( $text, $domain ) ); }