This package has been deprecated

Author message:

Work on this package has stopped in favor of confusables (https://www.npmjs.com/package/confusables) from developer gc (https://github.com/gc), a package which I have also contributed to and has a much better feature set and far better performance

@favware/unescape
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

DEPRECATED

Work on this package has stopped in favor of confusables from developer gc, a package which I have also contributed to and has a much better feature set and far better performance


logo

@favware/unescape

Convert HTML entities to HTML characters, e.g. > converts to >.


Project Status

GitHub Codecov

Bundle Sizes

npm bundle size npm bundle size npm

Social Media and Donations

Join Discord server Twitter Follow Patreon Donate PayPal Donate


Easily unescape HTML entities in both the backend and the frontend

Key Features

  • Useable in NodeJS through package manager of choice
  • Typesafe
  • Bundled with Rollup for maximum size reduction (only 1kB minified + gzipped!), ES module support and browser support
  • Generated TypeScript declarations
  • Treeshakeable in Webpack

Install

Install with yarn or npm:

yarn add @favware/unescape

# npm install @favware/unescape

Usage

const { unescape, charSets } = require('@favware/unescape');
// import unescape, { charSets } from '@favware/unescape';

const text = '<div>unescaped</div>';

console.log(unescape('<div>abc</div>'));
console.log(unescape`<div>abc</div>`);
console.log(unescape`awesome text with some ${text} section`);

// Log the supported characters
console.log(charSets);

API Documentation

Package Sidebar

Install

npm i @favware/unescape

Weekly Downloads

20

Version

1.3.2

License

MIT

Unpacked Size

23.8 kB

Total Files

12

Last publish

Collaborators

  • favna
  • favware-bot