bleach v5.0.1 Release Notes

Release Date: 2022-06-27 // over 1 year ago
  • ๐Ÿ› Bugs

    • โž• Add missing comma to tinycss2 require. Thank you, @shadchin!

    • โž• Add url parse tests based on wpt url tests. (#688)

    • ๐Ÿ‘Œ Support scheme-less urls if "https" is in allow list. (#662)

    • ๐Ÿ– Handle escaping < in edge cases where it doesn't start a tag. (#544)

    • ๐Ÿ›  Fix reference warnings in docs. (#660)

    • Correctly urlencode email address parts. Thank you, @larseggert! (#659)

Previous changes from v5.0.0

  • Backwards incompatible changes

    • clean and linkify now preserve the order of HTML attributes. Thank you, @askoretskly! (#566)

    • โฌ‡๏ธ Drop support for Python 3.6. Thank you, @hugovk! (#629)

    • ๐Ÿ’… CSS sanitization in style tags is completely different now. If you're using Bleach clean to sanitize css in style tags, you'll need to update your code and you'll need to install the css extras::

      pip install 'bleach[css]'

    See the documentation on sanitizing CSS for how to do it <>_. (#633)

    ๐Ÿ› Bug fixes

    • Rework dev dependencies. We no longer have Instead, we're using dev extras.

    See development docs <>_ for more details. (#620)

    • โž• Add newline when dropping block-level tags. Thank you, @jvanasco! (#369)