function esc_html_e( $text, $domain = 'default' ) {}

Displays translated text that has been escaped for safe use in HTML output.


  • string $text: Text to translate
  • string $domain: Optional. Domain to retrieve the translated text

Source code

function esc_html_e( $text, $domain = 'default' ) {

	echo esc_html( translate( $text, $domain ) );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: