mathiasbynens/he
A robust HTML entity encoder/decoder written in JavaScript. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4817
- days_rel: n/a
- days_push: 1708
- n_releases_24m: 0
Adoption not part of the score
3597 stars · 262 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A robust JavaScript library for encoding and decoding HTML entities, supporting all standardized named character references per the HTML spec. It handles ambiguous ampersands, astral Unicode symbols, and edge cases exactly like a browser would.
Use cases
- encode text into HTML entities
- decode HTML entities back to text
- sanitize user input for safe HTML output
- handle astral Unicode symbols in HTML
- escape special characters like ampersands and angle brackets
- match browser behavior for character reference parsing
When to choose
- you need spec-compliant HTML entity encoding/decoding in JavaScript
- you must handle full Unicode including astral symbols correctly
- you want browser-identical handling of ambiguous ampersands
When to avoid
- you need general HTML parsing or sanitization rather than entity handling
- you work outside JavaScript ecosystems
- you need actively developed features, as the project is in maintenance mode
Facets
library · maturity maintenance
serialization parser web-development developer-tools browser cross-platform html-entities encoder decoder unicode character-references natural-language-processing nodejs
3 sources
- readme: https://github.com/mathiasbynens/he · fetched 2026-08-28 · 867d15b9e669
- homepage: https://mths.be/he · fetched 2026-08-29 · 50f5c1e1a464
- registry_npm: https://registry.npmjs.org/he · fetched 2026-08-29 · d5a34f967922
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mathiasbynens/he | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="mathiasbynens/he")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem