A HTML encoder/decoder with full Unicode support.
npm install h3cVia npm:
``bash`
npm install h3c
In Node.js:
`js`
var h3c = require('h3c');
This function takes a string and decodes any named and numerical character references in it using the algorithm described in section 12.2.4.69 of the HTML spec.
`js`
h3c.decode('foo © bar ≠ baz & qux');
// → 'foo © bar ≠ baz & qux'
After cloning this repository, run npm install to install the dependencies needed for he development and testing. You may want to install Istanbul _globally_ using npm install istanbul -g.
Once that’s done, you can run the unit tests in Node using npm test or node tests/tests.js. To run the tests in Rhino, Ringo, Narwhal, and web browsers as well, use grunt test.
To generate the code coverage report, use grunt cover`.
_he_ is available under the MIT license.