将名称实体(named entities)的字符集转换成编号实体(numbered entities)的字符集。
用法
参数
$text
(string) (required) 将转换实体的文本
default: 无
返回值
(string)
转换实体之后的文本
实例
输出:
c’est la fête!
并且看到的是:
c'est la fête!
修改记录
since: 1.5.1
源文件
wp-includes/formatting.php.
将名称实体(named entities)的字符集转换成编号实体(numbered entities)的字符集。
$text
(string) (required) 将转换实体的文本
default: 无
(string)
转换实体之后的文本
输出:
c’est la fête!
并且看到的是:
c'est la fête!
since: 1.5.1
wp-includes/formatting.php.