WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/esc html e

Contents

Description

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

Usage

<?php esc_html_e$text$domain ); ?>

Parameters

$text
(string) (required) Text to translate
Default: None
$domain
(string) (optional) Optional. Domain to retrieve the translated text
Default: default

Change Log

Since: 2.8

Source File

esc_html_e() is located in wp-includes/l10n.php

Related

See: Data Validation article for an in-depth discussion of input and output sanitization.