Miscellaneous
autoLink()
Signature
Section titled “Signature”autoLink() — returns any
Description
Section titled “Description”Turns all URLs and email addresses into hyperlinks.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | yes | — | The text to create links in. |
link | string | yes | all | Whether to link URLs, email addresses or both. Possible values are: all (default), URLs and emailAddresses. |
relative | boolean | yes | true | Should we autolink relative urls |
Examples
Section titled “Examples”#autoLink("Download CFWheels from http://cfwheels.org/download")#
-> Download CFWheels 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>