Skip to content

Expose default clean_content_tags as module constant#118

Merged
messense merged 1 commit intomessense:mainfrom
gghez:expose-clean-content-tags
Mar 24, 2026
Merged

Expose default clean_content_tags as module constant#118
messense merged 1 commit intomessense:mainfrom
gghez:expose-clean-content-tags

Conversation

@gghez
Copy link
Copy Markdown
Contributor

@gghez gghez commented Mar 24, 2026

Ammonia already exposes clone_clean_content_tags() on the builder, but nh3 didn't surface it as a Python-accessible constant. I needed to check the defaults while working with clean_content_tags and noticed this was missing.

Adds CLEAN_CONTENT_TAGS following the same pattern as ALLOWED_TAGS, ALLOWED_ATTRIBUTES, and ALLOWED_URL_SCHEMES.

Closes #116

@messense messense merged commit b98f2c5 into messense:main Mar 24, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add access to the default clean content tags

2 participants