-
Notifications
You must be signed in to change notification settings - Fork 568
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
RFE: drop use bleach
as this module s marked as deprecated
#1952
Comments
[tkloczko@pers-jacek nbconvert-7.2.9]$ grep bleach -wr *
CHANGELOG.md:- Replace lxml.html.clean_html with bleach; drop lxml dependency by
CHANGELOG.md:- Support bleach 5, add packaging and tinycss2 dependencies by
nbconvert/filters/strings.py:import bleach
nbconvert/filters/strings.py: return bleach.clean(
nbconvert/filters/strings.py: tags=[*bleach.ALLOWED_TAGS, *ALLOWED_SVG_TAGS, "div", "pre", "code", "span"],
nbconvert/filters/strings.py: **bleach.ALLOWED_ATTRIBUTES,
nbconvert/filters/svg_constants.py:# Quoth the migration guide (https://github.com/mozilla/bleach/blob/main/docs/migrating.rst#different-allow-lists):
nbconvert/filters/svg_constants.py:# See https://github.com/mozilla/bleach/issues/362
nbconvert/preprocessors/sanitize.py:from bleach import ALLOWED_ATTRIBUTES, ALLOWED_TAGS, clean
nbconvert/preprocessors/sanitize.py: # bleach[css] >=5.0
nbconvert/preprocessors/sanitize.py: from bleach.css_sanitizer import ALLOWED_CSS_PROPERTIES as ALLOWED_STYLES
nbconvert/preprocessors/sanitize.py: from bleach.css_sanitizer import CSSSanitizer
nbconvert/preprocessors/sanitize.py: # bleach <5
nbconvert/preprocessors/sanitize.py: from bleach import ALLOWED_STYLES # type:ignore
nbconvert/preprocessors/sanitize.py: "Support for bleach <5 will be removed in a future version of nbconvert",
nbconvert/preprocessors/sanitize.py: "The installed bleach/tinycss2 do not provide CSS sanitization, "
nbconvert/preprocessors/sanitize.py: "please upgrade to bleach >=5", |
There are some examples of replacing |
Unfortunately |
They removed |
OK that could possible migration to? 🤔 |
I don't want to switch to something that is explicitly marked as unsafe. Bleach is still getting security releases, I don't see a reason to switch anything at this time. |
Sooner or later some replacement needs to be found as more and more other modules are dropping using |
I've stated my position. I'm unsubscribing from this issue. |
bleach is deprecated; statement on project going forward (2023-01-23) mozilla/bleach#698
The text was updated successfully, but these errors were encountered: