Escapes HTML tag characters: &
, <
, >
, "
and '
.
Installation
Add this line to your application's Gemfile:
gem "hache"
And then execute:
$ bundle
Or install it yourself as:
$ gem install hache
Usage
require "hache"
Hache.h(%q(<>&"')) == "<>&"'"
# => true
Contributing
Fork the project with:
$ git clone git@github.com:frodsan/hache.git
To install dependencies, use:
$ bundle install
To run the test suite, do:
$ rake test
For bug reports and pull requests use GitHub.
License
Hache is released under the MIT License.