• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wrap anchor tags around links in the database

#1
[eluser]brian88[/eluser]
Say I have a input field named "bodyText"

users enter something like this into the input field, "Hey check out this awesome link http://www.kickasshumor.com"

Now how can I wrap <a> tags around it to make it look like this when it gets inserted into the database?

Code:
Hey check out this awesome link <a href="http://www.kickasshumor.com">http://www.kickasshumor.com</a>

And is it possible to tell if the link is from youtube, then just embed that youtube link on my page?


Messages In This Thread
wrap anchor tags around links in the database - by El Forum - 04-20-2012, 09:07 AM
wrap anchor tags around links in the database - by El Forum - 04-20-2012, 10:18 AM
wrap anchor tags around links in the database - by El Forum - 04-20-2012, 07:17 PM
wrap anchor tags around links in the database - by El Forum - 04-20-2012, 08:18 PM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 07:36 AM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 10:11 AM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 10:30 AM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 10:35 AM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 02:15 PM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 02:21 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.