Project

hache

0.0
No commit activity in last 3 years
No release in over 3 years
Escapes HTML tag characters: &, <, >, ", '
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.8
>= 11
~> 0.49
 Project Readme

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 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.