escapein
v0.1.0
Published
A small library providing utility methods to escape and unescape HTML entities
Downloads
2
Readme
Escapein
A minimal node module providing utility methods to escape
and unescape
HTML entities
Installation
npm install scapegoat --save
Usage
var scapegoat = require('scapegoat')
escape = scapegoat.escape,
unescape = scapegoat.unescape;
var html = '<h1>Hello World</h1>',
escaped = escape(html),
unescaped = unescape(escaped);
console.log('html', html, 'escaped', escaped, 'unescaped', unescaped);
Tests
npm test