escapify

1.0.1 • Public • Published

escapify Build Status

Escape html strings

Install

$ npm install --save escapify

Usage

const escapify = require('escapify');
 
escapify.escape('<html string>');
//=> '&lt;html string&gt;'
 
escapify.unescape('&lt;html string&gt;');
//=> '<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

Package Sidebar

Install

npm i escapify

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • tobihrbr