Topic: php code
What do I need to change in the following php code to add the html equivalent of target="_blank"?
$full_url = str_replace(array(' ', '\'', '`', '"'), array('%20', '', '', ''), $url);
if (strpos($url, 'www.') === 0)
$full_url = 'http://'.$full_url;$link = ($link == '' || $link == $url) ? ((strlen($url) > 55) ? substr($url, 0 , 39).' … '.substr($url, -10) : $url) : stripslashes($link);
return '<a href="'.$full_url.'">'.$link.'</a>';
Thank you
Last edited by DesperateSailors (2011-12-07 15:19:13)