
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
character-entities-html4
Advanced tools
Map of named character references from HTML 4.
This is a map of named character references in HTML 4 to the characters they represent.
Maybe when youβre writing an HTML parser or minifier, but otherwise probably
never!
Even then, it might be better to use parse-entities
or
stringify-entities
.
This package is ESM only. In Node.js (version 12.20+, 14.14+, or 16.0+), install with npm:
npm install character-entities-html4
In Deno with Skypack:
import {characterEntitiesHtml4} from 'https://cdn.skypack.dev/character-entities-html4@2?dts'
In browsers with Skypack:
<script type="module">
import {characterEntitiesHtml4} from 'https://cdn.skypack.dev/character-entities-html4@2?min'
</script>
import {characterEntitiesHtml4} from 'character-entities-html4'
console.log(characterEntitiesHtml4.AElig) // => 'Γ'
console.log(characterEntitiesHtml4.aelig) // => 'Γ¦'
console.log(characterEntitiesHtml4.amp) // => '&'
console.log(characterEntitiesHtml4.apos) // => undefined
This package exports the following identifiers: characterEntitiesHtml4
.
There is no default export.
characterEntitiesHtml4
Map of case sensitive named character references from HTML 4.
See w3.org
for more info.
This package is fully typed with TypeScript.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers.
This package is safe.
parse-entities
β parse (decode) character referencesstringify-entities
β serialize (encode) character referencescharacter-entities
β info on character entitiescharacter-entities-invalid
β info on invalid numeric character referencescharacter-entities-legacy
β info on legacy named character referencesYes please! See How to Contribute to Open Source.
MIT Β© Titus Wormer
FAQs
Map of named character references from HTML 4
The npm package character-entities-html4 receives a total of 6,877,972 weekly downloads. As such, character-entities-html4 popularity was classified as popular.
We found that character-entities-html4 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.