README
Heroglyph
Library providing utility methods to escape
special characters to their HTML entities, decimal or hexadecimal as well as unescape
their corresponding character references back to chars.
1. How it work
escape function
will convert '#'
to '#'
or '#'
or '#'
depending on passed parameters.
unescape function
will convert '#'
or '#'
or '#'
to '#'
this module supports 1029 characters
the entities covered HTML5 and html 4.1
Installation
npm install heroglyph --save
yarn add --dev heroglyph
Usage
var entity = require('heroglyph');
var unescapeStr = 'item is under © ';
var escapeStr = 'say