Hi there,
Can anyone help me with this please? I'm trying to parse urls such as http://www.google.com/ to <a href=http://www.google.com/ target=_blank>
But it add's an annoying '> just before target which messes up the html code...
At the moment im trying to fix this code:
$body = eregi_replace("((f|ht)tps?://[^ \r]*[^ \r,.:!?)])", "<a href='\\1' target='_blank'>\\1</a>", $body);
but can anyone give me some better code or a link to a site which would tell me how to do this? I cant seem to find any information
Many thanks for any help,
Ben