Hi,
You may try to use regex in PHP (
http://php.net/manual/en/function.preg-match.php[
^]) in order to get that result. Follow
this[
^] tutorial.
What you have to do is simply detect the URL with this
#(?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»""‘’]))#iS
regex for instance. You can find other regexes
here[
^]. And then simply follow the point
Finding and replacing strings explained on the aforementioned tutorial to convert the URL to an HTML expression.
Feel free to comment if you have other clues about it ;)
Hope this helps.
LG