# What changed in html-react-parser

> 8 changes in html-react-parser 2 to 6 from its official release notes, upgrade guides and advisories: 2 breaking, 1 security. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/html-react-parser/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## html-react-parser 6

### Security

- Adds CSP support through the trustedTypePolicy option. (6.1.0) — [release notes](https://github.com/remarkablemark/html-react-parser/releases/tag/v6.1.0)

### Fixes and other changes

- Style attributes are converted case-insensitively. (6.1.9) — [release notes](https://github.com/remarkablemark/html-react-parser/releases/tag/v6.1.9)
- Restores instanceof Text and Comment checks in the replace callback. (6.1.8) — [release notes](https://github.com/remarkablemark/html-react-parser/releases/tag/v6.1.8)
- Requiring the package no longer throws ERR_REQUIRE_ESM_RACE_CONDITION. (6.1.7) — [release notes](https://github.com/remarkablemark/html-react-parser/releases/tag/v6.1.7)
- Normalizes the exported DOM element class. (6.1.1) — [release notes](https://github.com/remarkablemark/html-react-parser/releases/tag/v6.1.1)

## html-react-parser 5

### Breaking changes

- CommonJS imports require accessing the default export through the .default key. (5.0.0) — [release notes](https://github.com/remarkablemark/html-react-parser/releases/tag/v5.0.0)

### Fixes and other changes

- The ESM import now specifies an explicit file extension. (5.2.15) — [release notes](https://github.com/remarkablemark/html-react-parser/releases/tag/v5.2.15)

## html-react-parser 2

### Breaking changes

- Internet Explorer support was removed, so developers can no longer rely on html-react-parser supporting IE. (2.0.0) — [release notes](https://github.com/remarkablemark/html-react-parser/releases/tag/v2.0.0)
