@ngard/tiny-unescape

1.0.0 • Public • Published

tiny-unescape

source bundle size build status license

A minimal-weight utility equivalent to lodash.unescape. For when every byte counts!


lodash.unescape bundle size
tiny-unescape bundle size


Syntax

unescape(/* string */)

Parameters

string - An string to unescape

Return

Replaces escaped HTML characters (&amp;, &lt;, &gt;, &quot;, &#39;) with their unescaped forms (&, <, >, ", ' respectively).

Example

import { unescape } from '@ngard/tiny-unescape';

const value = unescape('&amp;&lt;&gt;&quot;&#39;');
// returns &<>"'

Readme

Keywords

Package Sidebar

Install

npm i @ngard/tiny-unescape

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

10.6 kB

Total Files

8

Last publish

Collaborators

  • ngard