character-entities-html4

JSON →
library 2.1.0 ·javascript
verified Jun 4, 2026

A map of named character references from HTML 4 (e.g., &amp; → &, &lt; → <) to their corresponding characters. Current stable version is 2.1.0. This package is ESM-only, fully typed with TypeScript, and has zero dependencies. It provides a case-sensitive mapping of 252 named entities as per the HTML 4 specification. Unlike the larger 'character-entities' package, this one only includes HTML 4 entities and excludes HTML 5 additions.