Obfuscate an email address in Twig
4
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>
Simple and to the point. Optimized by the community.
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>
There are no comments yet
Be the first one to comment