@riim/escape-html
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

escape-html

Escape html special characters.

Install

npm install escape-html --save

Usage

import { escapeHTML, unescapeHTML } from 'escape-html';

escapeHTML(' & < > " ');
// => ' &amp; &lt; &gt; &quot; '

unescapeHTML(' &amp; &lt; &gt; &quot; ');
// => ' & < > " '

Readme

Keywords

none

Package Sidebar

Install

npm i @riim/escape-html

Weekly Downloads

0

Version

1.1.5

License

MIT

Unpacked Size

4.99 kB

Total Files

14

Last publish

Collaborators

  • riim