function _filter_url_parse_full_links
_filter_url_parse_full_links($match)
Makes links out of absolute URLs.
Callback for preg_replace_callback() within _filter_url().
Related topics
File
- modules/filter/filter.module, line 1574
- Framework for handling the filtering of content.
Code
function _filter_url_parse_full_links($match) { // The $i:th parenthesis in the regexp contains the URL. $i = 1; $match[$i] = decode_entities($match[$i]); $caption = check_plain(_filter_url_trim($match[$i])); $match[$i] = check_plain($match[$i]); return '<a href="' . $match[$i] . '">' . $caption . '</a>' . $match[$i + 1]; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!filter!filter.module/function/_filter_url_parse_full_links/7.x