npm / html-react-parser
html-react-parser
What changed in html-react-parser 2 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
2 breaking1 security5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithtml-react-parser 65 changes
Security 1
Adds CSP support through the trustedTypePolicy option.
Fixes and other changes 4
Style attributes are converted case-insensitively.
Restores instanceof Text and Comment checks in the replace callback.
Requiring the package no longer throws ERR_REQUIRE_ESM_RACE_CONDITION.
Normalizes the exported DOM element class.
html-react-parser 52 changes
Breaking changes 1
CommonJS imports require accessing the default export through the .default key.
Fixes and other changes 1
The ESM import now specifies an explicit file extension.
html-react-parser 21 changes
Breaking changes 1
Internet Explorer support was removed, so developers can no longer rely on html-react-parser supporting IE.