string.prototype.htmlEntityDecode

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i string.prototype.htmlEntityDecode

Weekly Downloads

0

Version

1.1.0

License

GPL-3.0

Last publish

Collaborators

  • forksofpower