escapify
v1.0.1
Published
Escape html strings
Downloads
26
Maintainers
Readme
escapify
Escape html strings
Install
$ npm install --save escapify
Usage
const escapify = require('escapify');
escapify.escape('<html string>');
//=> '<html string>'
escapify.unescape('<html string>');
//=> '<html string>'
API
escapify.escape(input)
input
Type: string
unescaped html string
escapify.unescape(input)
input
Type: string
escaped html string
License
MIT © Tobias Herber