- encode html entities
- tiny function that replaces "<", ">", "''", "&" with html entities
npm install encode-html
var encode = require('encode-html');
console.log(encode('<div class="hidden">NON&SENSE\'s</div>'));
// -> '<div class="hidden">NON&SENSE's</div>'
(opposite) decode function decode-html
npm test
MIT
Andi Neck | @andineck | intesso