# What changed in nh3

> 6 changes in nh3 0.3 from its official release notes, upgrade guides and advisories: 4 new APIs and options. Each one cited. Sources checked 2026-10-25. HTML: https://unstale.sh/pypi/nh3/

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

## nh3 0.3

### New APIs and options

- Expose ammonia’s id_prefix option through the id_prefix keyword argument. (0.3.7) — [release notes](https://github.com/messense/nh3/releases/tag/v0.3.7)
- Add nh3.escape as an alias for clean_text. (0.3.6) — [release notes](https://github.com/messense/nh3/releases/tag/v0.3.6)
- Expose ammonia's url_relative policy through a url_relative keyword argument. (0.3.6) — [release notes](https://github.com/messense/nh3/releases/tag/v0.3.6)
- Adds a tags parameter to clean_text. (0.3.5) — [release notes](https://github.com/messense/nh3/releases/tag/v0.3.5)

### Fixes and other changes

- Validate conflicts between tag_attribute_values and attributes. (0.3.7) — [release notes](https://github.com/messense/nh3/releases/tag/v0.3.7)
- Validate conflicts between clean_content_tags and tags. (0.3.6) — [release notes](https://github.com/messense/nh3/releases/tag/v0.3.6)
