autolink
Summary
Returns the input string with the addresses replaced by link tags.
Usage
input|autolink()
Returns
A string with marked up links.
Description
This operator takes a string as an input. It will convert links and E-mail addresses to clickable entities using HTML markup. The resulting string (containing markup here and there) will be returned.
Examples
Example 1
{'Blah blah http://www.example.com blah [email protected] blah.'|autolink()}The following output will be produced:
Blah blah <a href="http://www.example.com">http://www.example.com</a> blah <a href="mailto:[email protected]">[email protected]</a> blah.
Changed in Exponential 6.0.15
The named parameters of the operator autolink in Exponential 6.0.15 (eZAutoLinkOperator::namedParameterList(), kernel/common/ezautolinkoperator.php), by position:
| Position | 6.0.15 (name in the code) | This page |
|---|---|---|
| 1 | max_chars (integer), required: No. | not listed |
Contributors
- Balazs Halasy
- Svitlana Shatokhina
- Damien Pobel Commenter
- Graham Brookins Updated
Comments (1 historical)
Written by readers of the earlier documentation sites, kept as they were.
parameters
Damien POBEL ·
autolink accepts an integer parameter that permits to limit the length of the link.