Changes:
- Require at least one slash after the protocol. Horde's other filters
don't expect us to match mailto: as part of these filters, so don't.
- Limit the URL protocol to 20 characters to avoid PCRE problems.
- Allow "+" characters in URL protocols (like svn+ssh://).
Parameters:
- callback: (string) A callback function that the URL is passed through
before being set as the href attribute. Must be a string
with the function name, the function must take the original
URL as the first and only parameter.
DEFAULT: No callback
- class: (string) The CSS class of the generated links.
DEFAULT: none
- encode: (boolean) Whether to escape special HTML characters in the
URLs and finally "encode" the complete tag so that it can be
decoded later with the decode() method. This is useful if you
want to run htmlspecialchars() or similar *after* using this
filter.
DEFAULT: false
- nofollow: (boolean) Whether to set the 'rel="nofollow"' attribute on
links.
DEFAULT: false
- target: (string) The link target.
DEFAULT: '_blank'
Copyright 2003-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.