Skip to content
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

bleach deprecated and NoCssSanitizerWarning: 'style' attribute specified, but css_sanitizer not set error #202

Open
adambirds opened this issue Apr 12, 2023 · 3 comments

Comments

@adambirds
Copy link

I was receiving the following warning and upon googling it found that bleach is now also deprecated, will you be moving away from it and currently do you know the fix for this warning?

See mozilla/bleach#698 for the post about it being deprecated.

@agusmakmun
Copy link
Owner

agusmakmun commented Apr 12, 2023

@adambirds oh damn, thank you for your important information. We should have a plan to get rid of bleach & use another option then.

But, for the temporary solution, you can use the old version, and see if it's warnings gone.
Here is some release history from him: https://pypi.org/project/bleach/#history

I just found html.parser as another option, they have the similar problem:
pypa/pip#10825

Or this one as well:

@agusmakmun
Copy link
Owner

agusmakmun commented Jul 30, 2023

nh3 only support Python 3.7+.

messense/nh3#20

@agusmakmun
Copy link
Owner

withlogicco/django-prose#36 (comment)

We cannot merge this currently, as it's an important decision we need to make calmly. We do have plenty of time, since the maintainers will continue to push security fixes for the foreseeable future, but we certainly need to make a decision here.

Meanwhile, this code will exist in the future at #209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants