Skip to content

Jesús Amieiro

Information technologies. Per aspera ad astra

Tag: i18n

Using e() or esc_html_() when translating on WordPress

In a talk at the WordCamp Spain online 2021 Adriá Cobo asked me one interesting question about these 2 functions (e() and esc_html_()): If everything that is printed must be escaped, what is the point of _e()? Is it a legacy code? In this post, I try to answer this question.

Published 05/11/2021
Categorized as WordPress Tagged i18n, internacionalization, l10n, localization, WordPress

Search

  • About me
  • Contact me
  • Talks
  • Running, trekking and other stuff
  • Cookies

Side projects

  • La semana PHP
  • Descargar máquinas virtuales
  • WP polyglots facilitator
  • Control the Work

Interesting links

  • Command Line Linux Tips and Tricks
  • Calendar of events, conferences, and meetups
Jesús Amieiro
Proudly powered by WordPress.