Sprout Encode Email

Encode the email addresses in your templates so they can't be harvested by evil spam bots.


The rot13 filter (and the easier to remember encode filter) encode the string you pass to them using the Rot13 cipher and return a javascript tag to decode the string on the page.

{% set email = "<a href='mailto:you@example.com'>Your Name</a>" %}

{{ email | encode }}
{{ email | rot13 }}

The entities filter encodes your content into HTML Entities.

<a href='{{ "mailto:you@example.com" | entities }}'>Your Name</a>


Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


  • Version 2.0.7
  • Last Update 4/30/2019
  • Active Installs 916
  • Compatibility Craft 3
  • License MIT
  • Categories Security, Templating

Report an issue