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;&#34;&#39;"
# => 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 GitHub.

License

Hache is released under the MIT License.