Sprout Encode Email


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

Usage

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>

Free

Package Name

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


Information

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

Report an issue