character-entities-legacy
HTML legacy character entity information: for legacy reasons some character entities are not required to have a trailing semicolon: ©
is perfectly okay for ©
.
Install
npm:
npm install character-entities-legacy
Use
var characterEntitiesLegacy = require('character-entities-legacy')
console.log(characterEntitiesLegacy.copy) // => '©'
console.log(characterEntitiesLegacy.frac34) // => '¾'
console.log(characterEntitiesLegacy.sup1) // => '¹'
API
characterEntitiesLegacy
Mapping between (case-sensitive) legacy character entity names to replacements.
Support
See whatwg/html
.
Related
character-entities
— HTML character entity infocharacter-entities-html4
— HTML 4 character entity infoparse-entities
— Parse HTML character referencesstringify-entities
— Serialize HTML character references