@ngard/tiny-unescape
v1.0.0
Published
A minimal-weight lodash.unescape equivalent utility
Downloads
4
Readme
tiny-unescape
A minimal-weight utility equivalent to lodash.unescape
. For when every byte counts!
Syntax
unescape(/* string */)
Parameters
string
- An string to unescape
Return
Replaces escaped HTML characters (&
, <
, >
, "
, '
) with their unescaped forms (&
, <
, >
, "
, '
respectively).
Example
import { unescape } from '@ngard/tiny-unescape';
const value = unescape('&<>"'');
// returns &<>"'