source: node_modules/character-entities-legacy/readme.md

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[d24f17c]1# character-entities-legacy
2
3[![Build][build-badge]][build]
4[![Downloads][downloads-badge]][downloads]
5[![Size][size-badge]][size]
6
7HTML legacy character entity information: for legacy reasons some character
8entities are not required to have a trailing semicolon: `&copy` is perfectly
9okay for `©`.
10
11## Install
12
13[npm][]:
14
15```sh
16npm install character-entities-legacy
17```
18
19## Use
20
21```js
22var characterEntitiesLegacy = require('character-entities-legacy')
23
24console.log(characterEntitiesLegacy.copy) // => '©'
25console.log(characterEntitiesLegacy.frac34) // => '¾'
26console.log(characterEntitiesLegacy.sup1) // => '¹'
27```
28
29## API
30
31### `characterEntitiesLegacy`
32
33Mapping between (case-sensitive) legacy character entity names to replacements.
34
35## Support
36
37See [`whatwg/html`][html].
38
39## Related
40
41* [`character-entities`](https://github.com/wooorm/character-entities)
42 — HTML character entity info
43* [`character-entities-html4`](https://github.com/wooorm/character-entities-html4)
44 — HTML 4 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-entities-legacy.svg
57
58[build]: https://travis-ci.org/wooorm/character-entities-legacy
59
60[downloads-badge]: https://img.shields.io/npm/dm/character-entities-legacy.svg
61
62[downloads]: https://www.npmjs.com/package/character-entities-legacy
63
64[size-badge]: https://img.shields.io/bundlephobia/minzip/character-entities-legacy.svg
65
66[size]: https://bundlephobia.com/result?p=character-entities-legacy
67
68[npm]: https://docs.npmjs.com/cli/install
69
70[license]: license
71
72[author]: https://wooorm.com
73
74[html]: https://raw.githubusercontent.com/whatwg/html/master/json-entities-legacy.inc
Note: See TracBrowser for help on using the repository browser.