1 | # character-reference-invalid
|
---|
2 |
|
---|
3 | [![Build][build-badge]][build]
|
---|
4 | [![Downloads][downloads-badge]][downloads]
|
---|
5 | [![Size][size-badge]][size]
|
---|
6 |
|
---|
7 | HTML invalid numeric character reference information.
|
---|
8 |
|
---|
9 | ## Install
|
---|
10 |
|
---|
11 | [npm][]:
|
---|
12 |
|
---|
13 | ```sh
|
---|
14 | npm install character-reference-invalid
|
---|
15 | ```
|
---|
16 |
|
---|
17 | ## Use
|
---|
18 |
|
---|
19 | ```js
|
---|
20 | var characterReferenceInvalid = require('character-reference-invalid')
|
---|
21 |
|
---|
22 | console.log(characterReferenceInvalid[0x80]) // => '€'
|
---|
23 | console.log(characterReferenceInvalid[0x89]) // => '‰'
|
---|
24 | console.log(characterReferenceInvalid[0x99]) // => '™'
|
---|
25 | ```
|
---|
26 |
|
---|
27 | ## API
|
---|
28 |
|
---|
29 | ### `characterReferenceInvalid`
|
---|
30 |
|
---|
31 | Mapping between invalid numeric character reference to replacements.
|
---|
32 |
|
---|
33 | ## Support
|
---|
34 |
|
---|
35 | See [`html.spec.whatwg.org`][html].
|
---|
36 |
|
---|
37 | ## Related
|
---|
38 |
|
---|
39 | * [`character-entities`](https://github.com/wooorm/character-entities)
|
---|
40 | — HTML character entity info
|
---|
41 | * [`character-entities-html4`](https://github.com/wooorm/character-entities-html4)
|
---|
42 | — HTML 4 character entity info
|
---|
43 | * [`character-entities-legacy`](https://github.com/wooorm/character-entities-legacy)
|
---|
44 | — Legacy character entity info
|
---|
45 | * [`parse-entities`](https://github.com/wooorm/parse-entities)
|
---|
46 | — Parse HTML character references
|
---|
47 | * [`stringify-entities`](https://github.com/wooorm/stringify-entities)
|
---|
48 | — Serialize HTML character references
|
---|
49 |
|
---|
50 | ## License
|
---|
51 |
|
---|
52 | [MIT][license] © [Titus Wormer][author]
|
---|
53 |
|
---|
54 | <!-- Definitions -->
|
---|
55 |
|
---|
56 | [build-badge]: https://img.shields.io/travis/wooorm/character-reference-invalid.svg
|
---|
57 |
|
---|
58 | [build]: https://travis-ci.org/wooorm/character-reference-invalid
|
---|
59 |
|
---|
60 | [downloads-badge]: https://img.shields.io/npm/dm/character-reference-invalid.svg
|
---|
61 |
|
---|
62 | [downloads]: https://www.npmjs.com/package/character-reference-invalid
|
---|
63 |
|
---|
64 | [size-badge]: https://img.shields.io/bundlephobia/minzip/character-reference-invalid.svg
|
---|
65 |
|
---|
66 | [size]: https://bundlephobia.com/result?p=character-reference-invalid
|
---|
67 |
|
---|
68 | [npm]: https://docs.npmjs.com/cli/install
|
---|
69 |
|
---|
70 | [license]: license
|
---|
71 |
|
---|
72 | [author]: https://wooorm.com
|
---|
73 |
|
---|
74 | [html]: https://html.spec.whatwg.org/multipage/syntax.html#table-charref-overrides
|
---|