Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

all-named-html-entities

codsen3.1kMIT3.0.11TypeScript support: included

List of all named HTML entities

all, array, encoded, entities, entity, existing, html, list, named, xhtml

readme

all-named-html-entities

List of all named HTML entities

page on codsen.com page on npm page on github Downloads per month changelog MIT Licence

Install

This package is pure ESM. If you're not ready yet, install an older version of this program, 1.6.0 (npm i all-named-html-entities@1.6.0).

npm i all-named-html-entities

Quick Take

import { strict as assert } from "assert";

import {
  allNamedEntities,
  allNamedEntitiesSetOnly,
  allNamedEntitiesSetOnlyCaseInsensitive,
  entStartsWith,
  entEndsWith,
  entStartsWithCaseInsensitive,
  entEndsWithCaseInsensitive,
  brokenNamedEntities,
  decode,
  minLength,
  maxLength,
  uncertain,
} from "all-named-html-entities";

assert.equal(Object.keys(allNamedEntities).length, 2125);
assert.equal(entStartsWith.A.E[0], "AElig");

Documentation

Please visit codsen.com for a full description of the API.

Contributing

To report bugs or request features or assistance, raise an issue on GitHub.

Licence

MIT License.

Copyright © 2010-2025 Roy Revelt and other contributors.

ok codsen star

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.0.0 (2022-12-01)

BREAKING CHANGES

  • Minimum supported Node version is v14.18; we're dropping v12 support

2.1.0 (2022-08-12)

Features

2.0.0 (2021-09-09)

Features

BREAKING CHANGES

  • programs now are in ES Modules and won't work with Common JS require()

1.6.0 (2021-05-24)

Features

  • config file based major bump blacklisting (e15f9bb)

1.5.15 (2021-04-11)

Reverts

  • Revert "chore: setup refresh" (23cf206)

1.5.1 (2021-01-28)

Fixed

  • add testStats to npmignore (f3c84e9)

1.5.0 (2021-01-23)

Features

1.4.0 (2020-11-28)

Accidental version bump during migration to SourceHut. Sorry about that.

1.3.0 (2020-05-06)

Features

  • add sets allNamedEntitiesSetOnly and allNamedEntitiesSetOnlyCaseInsensitive (84de965)

1.2.3 (2019-09-11)

Fixed

  • loosen few common entities to allow more fixing cases (87ff4f6)

1.2.0 (2019-08-24)

Features

  • generate the list of non-email-friendly entities from scratch (971e8a8)

1.1.0 (2019-06-01)

Features

  • Add &poud; to the list of recognised broken HTML entities (759aa9f)
  • Add a list of entities which are dangerous to add missing semicolon (uncertain.json) (c783a6e)
  • Add a list of named HTML entities not commonly supported among email consumption software (2bc2c25)
  • Add more broken entities, sort the list and improve unit tests (18e0b54)
  • entStartsWithCaseInsensitive and entEndsWithCaseInsensitive (b1e657b)
  • Export all entities (34b480a)
  • Export brokenNamedEntities (e6a986b)
  • minLength and maxLength of all known named HTML entities (ec4d154)
  • Remove broken nbsp's from the known broken entities list and start a new list (2b532fd)
  • Uncertain entities and other tweaks (c13a254)

1.0.0 (2019-04-02)

  • First public release