A Craft CMS plugin that adds a Twig filter to obfuscate emails.
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
obfuscator
LICENSE
README.md
composer.json
composer.lock
releases.json

README.md

Obfuscator

A Craft CMS plugin that adds a Twig filter to obfuscate emails or any other content using Hivelogic Enkoder.

This plugin uses Standalone PHPEnkoder.

Installation

  1. Clone repository (or download and unzip Package.zip from latest release.
  2. Place the obfuscator folder inside your craft/plugins/ folder.
  3. Go to Settings > Plugins inside your Control Panel and install Obfuscator.

Usage

{{ 'Reach us on me@example.com or <a href="mailto:anotherme@example.com">here</a>.' | enkode_emails }}
{{ '<a href="mailto:me@example.com">Contact Us</a>' | enkode_mailtos }}
{{ 'Contact us at me@example.com.' | enkode_plaintext_emails }}
{{ 'I don’t want spam bots to read this.' | enkode }}
{{ 'If you don’t have JavaScript, you’ll see a helpful message.' | enkode('JavaScript is required to view this message.') }}