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 hello@example.com 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:hello@example.com">hello@example.com</a> blah.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.