Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including character-reference-invalid with all npm packages installed. Try it out:

var characterReferenceInvalid = require("character-reference-invalid")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

character-reference-invalid v1.1.4

HTML invalid numeric character reference information

character-reference-invalid

Build Downloads Size

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

License

MIT © Titus Wormer

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free