2017 © Pedro Peláez
 

library mailsafe

simple symfony 2 bundle to output an email in a spam safe way

image

janthomas89/mailsafe

simple symfony 2 bundle to output an email in a spam safe way

  • Tuesday, December 30, 2014
  • by janthomas89
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

mailsafe

Simple symfony 2 bundle to output an email in a spam safe way, (*1)

How it works?

In order to hide an email address for spam bots, mailsafe renders a span element instead of the raw email address. The spans data-mailsafe attribute represents a reversed and base 64 encoded version of the email address., (*2)

<span data-mailsafe="WyJlZC5lcmF3dGZvcy1zYW1vaHRuYWpAb2ZuaSIsIiJd"></span>

To display a human readable version of this email the span is replaced via javascript., (*3)

How to use?

Include @JanThomas89MailSafeBundle/Resources/public/js/mailsafe.jquery.js in your template. Then use the twig filter "mailsafe" whenever you want to output an email., (*4)

{{ "example@example.com" | mailsafe }}

WARNING This script requires base64 support in browser. If you need to support other browsers (e.g. <IE10) use polyfill, (*5)

The Versions

30/12 2014

dev-master

9999999-dev https://github.com/janthomas89/mailsafe

simple symfony 2 bundle to output an email in a spam safe way

  Sources   Download

MIT

The Requires

  • php >=5.3

 

mail email encryption spam encoding safe spamsafe