scapeboat
v0.1.1
Published
Toy utility library for escaping/unescaping HTML entities.
Downloads
1
Readme
scapeboat
Toy library for learning nodejs, it escapes and unescapes HTML entities.
Installation
npm install scapeboat --save
Usage
var scapeboat = require('scapeboat')
escape = scapeboat.escape,
unescape = scapeboat.unescape;
var html = '<h1> Hello World</h1>';
console.log('Escaped: ', escape(html));
console.log('Unescaped: ', unescape(escaped(html)));
Tests
npm test
Contributing
Feel free to contrinute :)
Release History
- 0.1.1 Initial release