Scapegoat
A minimal node module providing utility methods to escape
and unescape
HTML entities
See the associated blog post, "Creating and publishing a node.js module."
Installation
npm install scapegoat --save
Usage
var scapegoat = escape = scapegoatescape unescape = scapegoatunescape; var html = '<h1>Hello World</h1>' escaped = unescaped = ; console;
Tests
npm test
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 1.0.0 Refactor to avoid double unescape and to use npm scripts instead of makefile. Also add link to associated blog post.
- 0.1.0 Initial release