function _filter_url_parse_full_links
7.x filter.module | _filter_url_parse_full_links($match) |
6.x filter.module | _filter_url_parse_full_links($match) |
Make links out of absolute URLs.
Related topics
1 string reference to '_filter_url_parse_full_links'
- _filter_url in drupal-6.x/
modules/ filter/ filter.module - URL filter. Automatically converts text web addresses (URLs, e-mail addresses, FTP links, etc.) into hyperlinks.
File
- drupal-6.x/
modules/ filter/ filter.module, line 853 - Framework for handling filtering of content.
Code
function _filter_url_parse_full_links($match) {
$match[2] = decode_entities($match[2]);
$caption = check_plain(_filter_url_trim($match[2]));
$match[2] = check_url($match[2]);
return $match[1] . '<a href="' . $match[2] . '" title="' . $match[2] . '">' . $caption . '</a>' . $match[5];
}