-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Bleach by NH3 #90
Comments
@obi-jerome That sounds promising. I've not come across that library before. I was going to update to bleach 6 recently, but not had time given the fact they changed all the kwargs from lists to sets. Bit of a bigger job that I was hoping for to support their last release. It'd be a bit more work, but just considering a new app, like django-nh3 or something. Just to be explicit. |
Yeah, I was thinking about a new app too. |
Hello guys, In my opinion lets make a new app |
I'll setup a repo with some basics in it. |
Here we go; |
I will give you the first star!! ★ |
Awesome ! I'll try this ASAP ! :) |
I wanted to test it, but there's no models.py in it, only the forms.py. |
@obi-jerome Yeah I've not had time to create the model field just yet. I did start - but it's been a little while so I can't remember where I got to. Perhaps branch from here; https://github.com/marksweb/django-nh3/tree/feat/model-field |
Since Bleach 6.0 will be the last release and we want the awesome Django Bleach to stay in alive...
Bleach could perhaps be replaced by HN3 ?
https://github.com/messense/nh3
NH3 is the Python Binding for Ammonia.
Ammonia is a whitelist-based HTML sanitization library.
Ammonia is written in Rust and a little Benchmark showed 15x faster performance.
https://github.com/rust-ammonia/ammonia
Looks like they were inspired by Bleach to do it, it could be our solution, what do you think ? ^_^
The text was updated successfully, but these errors were encountered: