@wormss/decode-html
v1.0.3
Published
DEPRECATED: Use html-entities instead.
Readme
@wormss/decode-html (DEPRECATED)
This package is deprecated and no longer maintained. Please use html-entities instead.
Originally created because existing decoders didn't quite fit the needs, but html-entities is now the recommended industry standard for performance and spec compliance.
Commonjs and ESM
npm i @wormss/decode-htmlExample
import { decodeHtml } from '@wormss/decode-html';
const decoded = decodeHtml('Hello world'); // Hello world
const decoded = decodeHtml(''Hello world''); // 'Hello world'Legacy
const { decodeHtml } = require('@wormss/decode-html');