pypi / nh3
nh3
What changed in nh3 0.3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.
4 new APIs and options2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnh3 0.36 changes
New APIs and options 4
Expose ammonia’s id_prefix option through the id_prefix keyword argument.
Add nh3.escape as an alias for clean_text.
Expose ammonia's url_relative policy through a url_relative keyword argument.
Adds a tags parameter to clean_text.
Fixes and other changes 2
Validate conflicts between tag_attribute_values and attributes.
Validate conflicts between clean_content_tags and tags.