Function : href

This function converts the urls in a text or string to an html link.

Syntax
  href($string, $wrapper)
   
  $string  : supplied string
  $wrapper : an html wrapper tag
   
                  
Sample 1
  vdump( href("url : http://somesite.com") );
                  
The result of the string above is shown below
Sample 1 result
  url : <a href="http://somesite.com"> http://somesite.com </a>
                  
We also can add a wrapper tag as shown below:
Sample 2
  vdump( href('url : http://somesite.com', 'span id="link"') );
                  
The result of the wrapper string above is shown below
Sample 2 result
            
  url :
   
  <span id="link"> 
    <a href="http://somesite.com"> http://somesite.com </a>
  </span id="link"> 

                  
Note that the tags were separated on a different line above to provide a better view. The returned response is usually on a single line.