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.
Contributors
- Balazs Halasy
- Svitlana Shatokhina Updated
Comments
Add a comment