Jump to content

[SOLVED] allowing hyperlinks


Lambneck

Recommended Posts

Ok so I'm using the following and getting what I want except when i click the link it creates a <br /> at the end of the url in the address bar! ex: http://www.google.com/analytics<br />

 

Why could it be doing that? And how do I get rid of it?

 

$message = preg_replace('/((www|http:\/\/)[^ ]+)/', '<a href="\1">\1</a>', $row['message']);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.