| 638 | | return $matches[1] . "<a href=\"$url\" rel=\"nofollow\">$url</a>"; |
| | 639 | // removed trailing [.,;:] from URL |
| | 640 | if ( in_array(substr($url, -1), array('.', ',', ';', ':')) === true ) { |
| | 641 | $ret = substr($url, -1); |
| | 642 | $url = substr($url, 0, strlen($url)-1); |
| | 643 | } |
| | 644 | return $matches[1] . "<a href=\"$url\" rel=\"nofollow\">$url</a>" . $ret; |
| 647 | | |
| 648 | | return $matches[1] . "<a href=\"$dest\" rel=\"nofollow\">$dest</a>"; |
| | 654 | // removed trailing [,;:] from URL |
| | 655 | if ( in_array(substr($dest, -1), array(',', ';', ':')) === true ) { |
| | 656 | $ret = substr($dest, -1); |
| | 657 | $dest = substr($dest, 0, strlen($dest)-1); |
| | 658 | } |
| | 659 | return $matches[1] . "<a href=\"$dest\" rel=\"nofollow\">$dest</a>" . $ret; |