This JavaScript module provides an `escapeHtml` function that escapes special characters in strings so they can be safely interpolated into HTML. It replaces `"`, `'`, `&`, `<`, and `>` for use as HTML text content, and can also be used for quoted HTML attribute values.
Project status
- The source
component/escape-htmlappears effectively quiet, with the latest documented packageupdatesin the provided history dating to 2015 (v1.0.3, then v1.0.2 and earlier). While the upstream shows a last push on 2022-09-16, there is no evidence here of ongoing versionedupdatesclose to today (2026-09-10), suggesting maintenance mode or dormancy. - Apparent update cadence: after a series of early changes (2012-2015), there are no further version
updatesshown beyond v1.0.3 (2015-09-01), indicating a long gap with no regular releases.
AI summary generated
Recent updates
v1.0.3
v1.0.3 introduces a rewritten implementation of the main escape function, along with a new benchmark script and updated README metadata. The release notes section is empty, so the documented changes are effectively unavailable.
BreakingFeaturesv1.0.2
v1.0.2 is a small packaging and metadata update for the escape-html package, with a minor internal refactor of index.js. The release notes are empty, so all changes below are derived from the code diff.
v1.0.1
Release v1.0.1 was published, but the publisher did not provide any release notes. As a result, there is no documented information about new features, bug fixes, security updates, breaking changes, or migration steps in this release.
v1.0.0
Release v1.0.0 updates the escape-html package. The diff indicates a behavioral change in the escaping logic and some packaging metadata adjustments, but the provided release notes are empty (none provided).
Breakingv0.0.1
This release is version v0.0.1. No release notes were provided, so there is no documented information about new features, fixes, security updates, or breaking changes.