hache

Escapes HTML tag characters: &, <, >, ", ' and /.

Usage

require "hache"

Hache.h(%q(<>&"'/)) == "&lt;&gt;&amp;&quot;&#x27;&#x2F;"
# => true

Installation

$ gem install hache