Hache Build Status

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(<>&"'/)) == "&lt;&gt;&amp;&quot;&#x27;&#x2F;"
# => true

Contributing

Fork the project with:

$ git clone [email protected]:frodsan/hache.git

To install dependencies, use:

$ bundle install

To run the test suite, do:

$ rake test

For bug reports and pull requests use GitLab.

License

Hache is released under the MIT License.