string.prototype.htmlEntityDecode
v1.1.0
Published
Tiny module that decodes HTML entities to symbols
Downloads
11
Maintainers
Readme
html-entity-decode
Tiny module that decodes HTML entities to symbols.
Installation
In a browser:
<script src="html-entity-decode.js"></script>
Via npm:
npm install string.prototype.htmlEntityDecode
Then, in Node.js:
require('string.prototype.htmlEntityDecode');
Usage
var string = '<div>Test</div>';
console.log(string.htmlEntityDecode); // <div>Test</div>
Author
@forksofpower