WordPress at a glance

esc_html_e() WP 1.0

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

Works based on: esc_html(), translate()

No Hooks.

Return

Nothing (null).

Usage

esc_html_e( $text, $domain );
$text(string) (required)
Text to translate.
$domain(string)
Text domain. Unique identifier for retrieving translated strings.
Default: 'default'

Code of esc_html_e: wp-includes/l10n.php VER 4.9.8

<?php
function esc_html_e( $text, $domain = 'default' ) {
	echo esc_html( translate( $text, $domain ) );
}

Related Functions

From tag: esc_ (clean validate sanitize)

More from category: Localization

No comments
    Hello, !     Log In . Register