Converts URI, www, FTP, and email addresses. Finishes by fixing links within links.
<?php make_clickable( $text ); ?>
Display all URLs in clickable links
<?php $string = "This is a long text that contains some links like http://www.wordpress.org and http://www.wordpress.com ."; echo make_clickable( $string ); ?>
This function can be fed long strings with URIs and email links and will convert them into clickable links. You are not limited to feeding it just the link text itself (see the long string in the example above).
make_clickable() is located in