@vouchington/html-utils
v0.1.1
Published
HTML entity decoding and text-safe escaping.
Readme
@vouchington/html-utils
Small HTML text utilities backed only by entities: escaping, strict entity decoding with optional
caller-selected case-insensitive legacy names, lightweight lexical checks for tags or selected
elements, and escapeInlineScriptJson for inline <script> JSON payloads. isInsideCode is the
code/pre convenience over isInsideHtmlElement. Named-entity allowlists stay caller-owned.
This package does not parse, sanitize, or render HTML.
