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

Package detail

html-entities-not-email-friendly

codsen1.3kMIT0.9.0TypeScript support: included

All HTML entities which are not email template friendly

email, entities, friendly, html, marketing, named, not, template

readme

html-entities-not-email-friendly

All HTML entities which are not email template friendly

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, 0.5.0 (npm i html-entities-not-email-friendly@0.5.0).

npm i html-entities-not-email-friendly

Quick Take

import { strict as assert } from "assert";

import {
  notEmailFriendly,
  notEmailFriendlySetOnly,
  notEmailFriendlyLowercaseSetOnly,
  notEmailFriendlyMinLength,
  notEmailFriendlyMaxLength,
} from "html-entities-not-email-friendly";

// it's object, mapping entity names to numeric equivalents
assert.equal(Object.keys(notEmailFriendly).length, 1841);

// it's a Set, only listing the bad entity names
assert.equal(notEmailFriendlySetOnly.size, 1841);

// is ≳ email-friendly?
assert.equal(notEmailFriendlySetOnly.has("GreaterTilde"), true);
// no, use numeric entity

// is   email-friendly?
assert.equal(notEmailFriendlySetOnly.has("nbsp"), false);
// yes, it's OK

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.

0.9.0 (2025-10-15)

Features

  • if value to be added is a number, keep it as is, don't stringify (ce3e1a5)

0.8.0 (2022-12-01)

BREAKING CHANGES

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

0.7.0 (2022-08-12)

Features

0.6.0 (2021-09-09)

Features

BREAKING CHANGES

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

0.5.0 (2021-05-24)

Features

  • config file based major bump blacklisting (e15f9bb)

0.4.15 (2021-04-11)

Reverts

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

0.4.1 (2021-01-28)

Fixed

  • add testStats to npmignore (f3c84e9)

0.4.0 (2021-01-23)

Features

0.3.0 (2020-11-28)

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

0.2.0 (2020-04-18)

Features

  • add notEmailFriendlySetOnly and notEmailFriendlyLowercaseSetOnly. 288% perf gain (22b4e9b)

0.1.0 (2019-08-26)

Features