3.6. Function reference
3.6.2. autoLink()
3.6.1. absolute()
« Previous
3.6.3. average()
Next »

3.6.2. autoLink()

Referencestring autoLink(string $text, [, string $class = null [, string $target = '_blank']])
Versionssince 2.0.5

Turns all URL-s into clickable links in the specified $text. The optional arguments are:

$class - the link CSS class.

$target - the link target (default to _blank).

Note that if HTML escaping is enabled, you have to turn it off for the function result with the u: modifier in order to display it properly:

<p>{u:autoLink($text)}</p>

The function performs an automatic HTML escaping before parsing the $text argument against URL-s. It is not possible to parse a text that already contains HTML.

3.6.2. autoLink()
3.6. Function reference
« Previous
3.6.1. absolute()
Next »
3.6.3. average()