forked from lix-project/lix-website
1.9 KiB
1.9 KiB
character-reference-invalid
HTML invalid numeric character reference information.
Install
npm:
npm install character-reference-invalid
Use
var characterReferenceInvalid = require('character-reference-invalid')
console.log(characterReferenceInvalid[0x80]) // => '€'
console.log(characterReferenceInvalid[0x89]) // => '‰'
console.log(characterReferenceInvalid[0x99]) // => '™'
API
characterReferenceInvalid
Mapping between invalid numeric character reference to replacements.
Support
See html.spec.whatwg.org
.
Related
character-entities
— HTML character entity infocharacter-entities-html4
— HTML 4 character entity infocharacter-entities-legacy
— Legacy character entity infoparse-entities
— Parse HTML character referencesstringify-entities
— Serialize HTML character references