mailmask

A jQuery Plugin to mask email links on your site and protect them from spam bots.


Install
bower install mailmask

Documentation

mailmask

A jQuery Plugin to mask email links on your site and protect them from spam bots.

What it does

Everything stays the same, except your email are protected from spam bots.

More specific: This plugin takes every email link inside your site and replaces the '@' inside the content and the actual link. Doing so protects the email from being recognized by spam bots. Although the link is replaced the link remains clickable and will trigger a valid email link.

Usage

  1. Include jQuery:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
  2. Include plugin's code:

    <script src="dist/mailmask.min.js"></script>
  3. Call the plugin:

    $(document).mailmask();

3.1 Call the plugin with parameter (optional):

```javascript
$(document).mailmask({
    placeholder: "[at]"
});
```

Demo

A small demo is found inside the demo folder of the repository.

License

MIT License © Zeno Rocha