October CMS resources and help articles

Simple and to the point. Optimized by the community.

Obfuscate an email address in Twig

5
by OFFLINE, last modified on August 10th, 2019

You can use the built in html_email helper function to obfuscate an email address in Twig.

<a href="mailto:{{ html_email('email@example.com') | raw }}">
    Email me
</a>

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?