Skip to content

adunkman/unspamify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unspamify!

Build Status

A jQuery plugin to convert "spam-concious" "links" to mailto: links.

This plugin reads the .text() of an element and adds a "href" attribute that is a mailto link. Confused? Examples!

Example

Your HTML is all like...

<a class="unspamify-me">display text here: email at domain dot com</a>
<a class="unspamify-me">email at domain dot com</a>

Your JavaScript is all like...

$(document).ready(function () {
   $("a.unspamify-me").unspamify();
});

And then your page is all like...

<a class="unspamify-me" href="mailto:email@domain.com">display text here</a>
<a class="unspamify-me" href="mailto:email@domain.com">email@domain.com</a>

Tests

Run the tests for yourself.

License

Copyright (c) 2011-2012 Andrew Dunkman. Released under MIT License.

About

jQuery plugin to prevent robots from stealing your emails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published