Forum Moderators: coopster

Message Too Old, No Replies

Creating a link from users url post.

         

quasi

12:43 am on Jul 11, 2006 (gmt 0)

10+ Year Member



Is there perhaps a nice php function that can parse through a text string and identify any url strings and create a new string with the html link code?

I'm allowing users to post events and I want to be able have any urls they add to their event description be a link when they are displayed.

RonPK

5:22 pm on Jul 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AFAIK there is no specific function to do that. It can be done with pattern matching using regular expressions. There are some examples in the comments on [php.net...]