unescape
Convert the HTML entities in a string to their corresponding HTML characters, e.g. >
converts to >
.
Install
Install with npm:
npm i unescape --save-dev
Run tests
npm test
Usage
var unescape = require('unescape');
console.log(unescape('<div>abc</div>'));
'
converts to '
&
converts to &
>
converts to >
<
converts to <
"
converts to "
Get the characters/entities:
console.log(unescape.chars);
returns
{
''': '\'',
'&': '&',
'>': '>',
'<': '<',
'"': '"'
}
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on September 14, 2014.