escape_link

Convert any URLs in a plaintext into HTML links, with adding the rel="nofollow" attribute.

Example:

{{ "http://foo.bar/"|escape_link }}

Outputs:

<a href="http://foo.bar/" rel="nofollow">http://foo.bar/</a>

This filter is very useful when displaying user-generated plaintexts, like comments.

Edit on GitHub

escape_ical Character escaping escapejs

urlize URLs and links urlencode

Referred by

Filters

Filters transform template variables before they are rendered.

urlize

Find urls in the given input and make them clickable.