把 字符串中没有加链接的 url 加上链接 有的就不用了。
$str = '<a href="xxxx">xsx</a> http://www.v2ex.com ';
显示成
<a href="xxxx">xsx</a> <a href="http://www.v2ex.com">http://www.v2ex.com</a>
$str = '<a href="xxxx">xsx</a> http://www.v2ex.com ';
显示成
<a href="xxxx">xsx</a> <a href="http://www.v2ex.com">http://www.v2ex.com</a>