torchbox / wagtail-markdown

Markdown support for Wagtail
zlib License
198 stars 66 forks source link

Replace bleach with nh3 #132

Open zerolab opened 1 year ago

zerolab commented 1 year ago

Good reference - https://daniel.feldroy.com/posts/2023-06-converting-from-bleach-to-nh3

replace: https://github.com/torchbox/wagtail-markdown/blob/main/src/wagtailmarkdown/utils.py#L29 https://github.com/torchbox/wagtail-markdown/blob/main/src/wagtailmarkdown/utils.py#L33 https://github.com/torchbox/wagtail-markdown/blob/main/src/wagtailmarkdown/constants.py#L93