1.1.0 • Published 7 years ago

string.prototype.htmlEntityDecode v1.1.0

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
7 years ago

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 = '&#x3C;div&#x3E;Test&#x3C;/div&#x3E;';
console.log(string.htmlEntityDecode); // <div>Test</div>

Author

@forksofpower