You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bleach 6 has been released and is due to be the final version of bleach because it is now deprecated due to html5lib being unmaintained. Further details here.
The significant changes required to support version 6 are;
bleach.clean, bleach.sanitizer.Cleaner, bleach.html5lib_shim.BleachHTMLParser: the tags and protocols
arguments were changed from lists to sets.
bleach.clean(
"some text",
tags={"a", "p", "img"},
# ^ ^ set
protocols={"http", "https"},
# ^ ^ set
)
bleach.linkify, bleach.linkifier.Linker: the skip_tags and recognized_tags arguments were changed from lists to sets.
bleach.linkify(
"some text",
skip_tags={"pre"},
# ^ ^ set
)
The text was updated successfully, but these errors were encountered:
Bleach 6 has been released and is due to be the final version of bleach because it is now deprecated due to
html5lib
being unmaintained. Further details here.The significant changes required to support version 6 are;
bleach.clean
,bleach.sanitizer.Cleaner
,bleach.html5lib_shim.BleachHTMLParser
: thetags
andprotocols
arguments were changed from lists to sets.
bleach.linkify
,bleach.linkifier.Linker
: theskip_tags
andrecognized_tags
arguments were changed from lists to sets.The text was updated successfully, but these errors were encountered: