escape-unescape
v1.0.1
Published
escape and unescape the special characters
Downloads
29
Maintainers
Readme
How to use this module
npm install --save escape-unescape
Example
const specialCharacters = require("escape-unescape");
var html = '<h1>Hello World</h1>',
escaped = specialCharacters.escape(html),
unescaped = specialCharacters.unescape(escaped);
console.log('html', html, '\nescaped', escaped, '\nunescaped', unescaped);