liven_urls
Attempt to recognise URIs in the body text and make HTML links
out of them.
only the most common protocols,
such as "http", "https", "ftp" and
"mailto",
are actually enabled in the filter.
Other protocols, such as
"news",
"nntp",
"telnet",
"gopher",
"wais",
"file",
"prospero",
"ldap",
"z39.50r",
"z39.50s",
"cid",
"mid",
"vemmi",
"imap" and
"nfs" have been implemented,
but have been commented out to save on processing time.
If you need the filter to recognise these protocols then you will need to
uncomment the appropriate lines in the filter's source code and restart
Interchange.
|
Availability
This filter was introduced in version 5.4.0,
and is therefore not available for use with any earlier Interchange version.
|
Example
[filter liven_urls]
1. http://www.example.com/
2. https://www.example.com/
3. ftp://ftp.example.com/
4. ftp://@ftp.example.com/
5. ftp://foo:@ftp.example.com/
6. ftp://foo@ftp.example.com/etc/motd
7. ftp://foo@ftp.example.com//etc/motd
8. ftp://foo@ftp.example.com/%2Fetc/motd
[/filter]
|
Results in:
1. <a href="http://www.example.com/">http://www.example.com/</a>
2. <a href="https://www.example.com/">https://www.example.com/</a>
3. <a href="ftp://ftp.example.com/">ftp://ftp.example.com/</a>
4. <a href="ftp://@ftp.example.com/">ftp://@ftp.example.com/</a>
5. <a href="ftp://foo:@ftp.example.com/">ftp://foo:@ftp.example.com/</a>
6. <a href="ftp://foo@ftp.example.com/etc/motd">ftp://foo@ftp.example.com/etc/motd</a>
7. <a href="ftp://foo@ftp.example.com//etc/motd">ftp://foo@ftp.example.com//etc/motd</a>
8. <a href="ftp://foo@ftp.example.com/%2Fetc/motd">ftp://foo@ftp.example.com/%2Fetc/motd</a>
|