| | 283 | * Display translated string with gettext context, and escapes it for safe use in an attribute. |
| | 284 | * |
| | 285 | * @since 4.2.3 |
| | 286 | * |
| | 287 | * @param string $text Text to translate. |
| | 288 | * @param string $context Context information for the translators. |
| | 289 | * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. |
| | 290 | * @return string Translated text |
| | 291 | */ |
| | 292 | function esc_attr_ex( $text, $context, $domain = 'default' ) { |
| | 293 | echo esc_attr_x( $text, $context, $domain ) ); |
| | 294 | } |
| | 295 | |
| | 296 | /** |
| | 311 | * Display translated string with gettext context, and escapes it for safe use in HTML output. |
| | 312 | * |
| | 313 | * @since 4.2.3 |
| | 314 | * |
| | 315 | * @param string $text Text to translate. |
| | 316 | * @param string $context Context information for the translators. |
| | 317 | * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. |
| | 318 | * @return string Translated text. |
| | 319 | */ |
| | 320 | function esc_html_ex( $text, $context, $domain = 'default' ) { |
| | 321 | echo esc_html_x( $text, $context, $domain ); |
| | 322 | } |
| | 323 | |
| | 324 | /** |