过滤清理并转义的字符串,以便在HTML属性中输出。
原型
apply_filters( 'attribute_escape', string $safe_text, string $text )
描述
传递给esc_attr()的文本在输出之前被删除无效或特殊字符。
参数
$safe_text
(string)
它之后的文本已被转义。
$text
(string)
转义之前的文本。
源文件
路径:wp-includes/formatting.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/attribute_escape/