Displaying plain text with clickable links

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stephanieb
Forum Newbie
Posts: 1
Joined: Wed Sep 29, 2004 5:57 pm

Displaying plain text with clickable links

Post by stephanieb »

Hello,

I need to take some plain text which may contain some url links from the database and display them online - as plain text with clickable links.

Does anybody have an idea of how I can do this?

Thanks,
Stephanie :)
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

you could use an array of different regular expressions to capture the link format and insert the correct tags to display them as links on the page.
Post Reply