将 email 地址的字符转化成 html entities 以便防止垃圾邮件。
用法
参数
$emailaddy
(string) (required) email 地址
default: 无
$mailto
(integer) (optional) 0 或者 1. 用于编码.
default: 0
返回值
(string)
转化之后的 email 地址。
实例
在 html 源代码中显示的代码如下:
john.doe@mysite.com
但是在浏览器中,人们看到的还是:
john.doe@mysite.com
修改记录
since: 0.71
源文件
wp-includes/formatting.php