首页 WordPress函数大全 esc_attr_e()

esc_attr_e()

2020-05-01 / 2659阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

esc_attr_e( string $text, string $domain = 'default' )

Display translated text that has been escaped for safe use in an attribute.

描述

Encodes < > & " ' (less than, greater than, ampersand, double quote, single quote). Will never double encode entities.

If you need the value for use in PHP, use esc_attr__().

参数

$text

(string)
(Required)
Text to translate.

$domain

(string)
(Optional)
Text domain. Unique identifier for retrieving translated strings.

Default value: 'default'

大家谈论
    我的见解