Skip to content

Conversation

@ofek
Copy link
Contributor

@ofek ofek commented Jan 17, 2026

The project bleach is deprecated. I chose nh3 because it's a thin wrapper around the well-maintained sanitizer ammonia, which adds longevity to the recommendation since minimal maintenance is required for such bindings. Also, the author notes that it's ~20x faster than bleach.

If you prefer something that's pure Python, a relatively new option is justhtml. The author appears engaged in the community and has apparently adopted tests from the suites of other sanitizers. I wouldn't recommend it currently because of how new it is and because I'm not exactly sure how much of it was generated by AI.

@hroncok
Copy link
Member

hroncok commented Jan 17, 2026

Thanks. The CI failure is unrelated and I don't think it needs to pass here.

I don't mind this change, but I leave the decision to @frenzymadness.

@frenzymadness
Copy link
Member

Thank you!

@frenzymadness frenzymadness merged commit 80cebf7 into fedora-python:main Jan 19, 2026
0 of 7 checks passed
@ofek ofek deleted the patch-1 branch January 19, 2026 06:14
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.

3 participants