将纯文本中的 uri 转换成 html 链接。
将转换 uri,www,ftp 和邮箱地址,并且修正链接中的链接。
用法
参数
$text
(string) (required) 将转换成可点击的文本。
default: none
返回值
(string)
链接转换成可点击的 html 代码。
实例
$string = "xiaoyi 的博客是 http://xiaoyi.vc/ ";
echo make_clickable($string);
输出结果:
xiaoyi 的博客是 云顶国际-yd77699云顶国际
修改记录
since: 0.71
源文件
wp-includes/formatting.php