# What changed in hast-util-to-html

> 7 changes in hast-util-to-html 9 from its official release notes, upgrade guides and advisories: 4 breaking. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/hast-util-to-html/

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

## hast-util-to-html 9

### Breaking changes

- Use `characterReferences` in place of `options.entities`. (9.0.0) — [release notes](https://github.com/syntax-tree/hast-util-to-html/releases/tag/9.0.0)
- The `entities` option was removed; use `characterReferences` instead. (9.0.0) — [release notes](https://github.com/syntax-tree/hast-util-to-html/releases/tag/9.0.0)
- The package now uses exports; consumers should not use private APIs. (9.0.0) — [release notes](https://github.com/syntax-tree/hast-util-to-html/releases/tag/9.0.0)
- Node.js 16 is now required to use the package. (9.0.0) — [release notes](https://github.com/syntax-tree/hast-util-to-html/releases/tag/9.0.0)

### Fixes and other changes

- Text is no longer encoded in more raw text elements. (9.0.7) — [release notes](https://github.com/syntax-tree/hast-util-to-html/releases/tag/9.0.7)
- Fixes HTML handling in SVG for desc, foreignObject, and title. (9.0.6) — [release notes](https://github.com/syntax-tree/hast-util-to-html/releases/tag/9.0.6)
- Fixes omission of the p closing tag in custom elements. (9.0.6) — [release notes](https://github.com/syntax-tree/hast-util-to-html/releases/tag/9.0.6)
