Converts URLs in text into links in Drupal 7 automatically. Three types of "links" get converted. URLs like http://example.com, e-mail addresses like name@example.com and urls without the "http://" protocol like www.example.com.
Source code viewer
module_load_include('module', 'filter'); $filter = new stdClass(); $filter->callback = '_filter_url'; 'filter_url_length' => 300, ); echo _filter_url($html, $filter);Programming Language: PHP