SOLUCIONADO:
Código PHP:
<?
function inv_make_clickable($text)
{
$ret = ' ' . $text;
$ret = preg_replace("#(^|[\n ])<a href=\"([\w]+?://[^ \"\n\r\t<]*)\" target=\"_blank\">([\w]+?://[^ \"\n\r\t<]*)</a>#is", "\\1\\2", $ret);
$ret = preg_replace("#(^|[\n ])<a href=\"http://((www|ftp)\.[^ \"\t\n\r<]*)\" target=\"_blank\">((www|ftp)\.[^ \"\t\n\r<]*)</a>#is", "\\1\\2", $ret);
$ret = preg_replace("#(^|[\n ])<a href=\"mailto:([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)\">([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)</a>#i", "\\1\\2@\\3", $ret);
$ret = substr($ret, 1);
return($ret);
}
echo inv_make_clickable("Texto <a href=\"http://forosdelweb.com\" target=\"_blank\">http://forosdelweb.com</a> texto");
?>