Jump to content

Archived

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

warnockm

add html to text link

Recommended Posts

Does anyone have any code to search through text for a link, then add html around it to make it clickable? Should input text and output the same text w/ html links.

thanks!

Share this post


Link to post
Share on other sites
You want to possibly look into preg_match() and preg_replace().

Share this post


Link to post
Share on other sites

×

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.