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 appears mostly stable and mature, with the last documented update in the provided history being v1.0.3 on 2015-09-01, and no newer version updates shown since then (the upstream git last push is 2022-09-16, but that does not necessarily translate into published version updates).
- The apparent update cadence is very infrequent, with large time gaps between updates (v1.0.1 in 2013, v1.0.2 in 2015, v1.0.3 in 2015), followed by no evidence of further version updates in the recent list.
AI summary generated Today
Recent updates
v1.0.3
9/1/2015v1.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
6/6/2015v1.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
12/20/2013Release 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
5/30/2013Release 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
8/20/2012This 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.