Jump to content


Photo

add html to text link


  • Please log in to reply
1 reply to this topic

#1 warnockm

warnockm
  • Members
  • PipPip
  • Member
  • 26 posts

Posted 01 June 2006 - 06:43 PM

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!

#2 Caesar

Caesar
  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 01 June 2006 - 07:11 PM

You want to possibly look into preg_match() and preg_replace().
PHP Ninja




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users