character-entities-legacy
HTML legacy character entity information
Last updated 4 years ago by wooorm .
MIT · Repository · Bugs · Original npm
$ cnpm install character-entities-legacy 
SYNC missed versions from official npm registry.

character-entities-legacy

Build Coverage Downloads Size

HTML legacy character entity information: for legacy reasons some character entities are not required to have a trailing semicolon: &copy is perfectly okay for ©.

Install

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.

npm:

npm install character-entities-legacy

Use

import {characterEntitiesLegacy} from 'character-entities-legacy'

console.log(characterEntitiesLegacy.copy) // => '©'
console.log(characterEntitiesLegacy.frac34) // => '¾'
console.log(characterEntitiesLegacy.sup1) // => '¹'

API

This package exports the following identifiers: characterEntitiesLegacy. There is no default export.

characterEntitiesLegacy

Mapping between (case-sensitive) legacy character entity names to replacements.

Support

See whatwg/html.

Related

License

MIT © Titus Wormer

Current Tags

  • 3.0.0                                ...           latest (4 years ago)

3 Versions

  • 3.0.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.1.4                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (11)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org