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:

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__().

Related Functions

esc_attr__, esc_attr_x, esc_attr, esc_html_e, wp_kses_attr

Top Google Results

User discussions

wpseek mobile