Spamspanify
Extends the String class with a String#spamspanify method that converts email addresses in the string into SpamSpan HTML markup. This HTML markup can then easily be transformed in a clickable mailto link in the browser by using the SpanSpan javascript library.
Note: Currently only paranoia levels 1 and 3 are supported. See the SpamSpan website for info on paranoia levels.
Installation
Add this line to your application's Gemfile:
gem 'spamspanify'
And then execute:
$ bundle
Or install it yourself as:
$ gem install spamspanify
Usage
Simply call the String#spamspanify method on a string.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
Spamspanify is released under a MIT License