S
Sergio Orrego
I have a text string which comes from a form containing the article text in
a knowledgebase. Sometimes people enter http links in their text however
when they show on the webpage they do not show as hyperlinks, because
obviously they don't gave the link tags around them.
What I'd like is to manipulate this text string so that wherever there is
http in it it put's the link tags around it. So what I'm really asking is,
how can I convert this string:
And to get to the blah blah site please go to http://blah-blah.com and you
will find lots of blah blah there.
Into this:
And to get to the blah blah site please go to <a
href="http://blah-blah.com">http://blah-blah.com</a> and you will find lots
of blah blah there.
It needs to be versatile as they may enter more than one http link within
the text.
Any help appreciated!
Sergio.
a knowledgebase. Sometimes people enter http links in their text however
when they show on the webpage they do not show as hyperlinks, because
obviously they don't gave the link tags around them.
What I'd like is to manipulate this text string so that wherever there is
http in it it put's the link tags around it. So what I'm really asking is,
how can I convert this string:
And to get to the blah blah site please go to http://blah-blah.com and you
will find lots of blah blah there.
Into this:
And to get to the blah blah site please go to <a
href="http://blah-blah.com">http://blah-blah.com</a> and you will find lots
of blah blah there.
It needs to be versatile as they may enter more than one http link within
the text.
Any help appreciated!
Sergio.