marksweb / django-bleach

Bleach is a Python module that takes any HTML input, and returns valid, sanitised HTML that contains only an allowed subset of HTML tags, attributes and styles. django-bleach is a Django app that makes using bleach extremely easy.
MIT License
148 stars 23 forks source link

Support for bleach 6 #87

Open marksweb opened 1 year ago

marksweb commented 1 year ago

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.linkify(
         "some text",
         skip_tags={"pre"},
         #         ^     ^ set
     )