Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

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.

Balazs Halasy (17/03/2005 12:29 pm)

Svitlana Shatokhina (30/03/2006 11:07 am)

Balazs Halasy, Svitlana Shatokhina


Comments

There are no comments.