encode-html
v1.0.1
Published
encode html entities
Downloads
232
Readme
encode-html
- encode html entities
- tiny function that replaces "<", ">", "''", "&" with html entities
install
npm install encode-html
use
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
test
npm test
license
MIT
author
Andi Neck | @andineck | intesso