autoLink()

Description

Turns all URLs and e-mail addresses into clickable links.

Function Syntax

autoLink(text [, link ])

Parameters

Parameter Type Required Default Description
text string Yes The text to create links in.
link string No all Whether to link URLs, email addresses or both. Possible values are: all (default), URLs and emailAddresses.

Examples

#autoLink("Download Wheels from http://cfwheels.org/download")#
->
Download Wheels from <a href="http://cfwheels.org/download">http://cfwheels.org/download</a>

#autoLink("Email us at info@cfwheels.org")#
-> Email us at <a href="mailto:info@cfwheels.org">info@cfwheels.org</a>