We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 195000f commit d9e0bacCopy full SHA for d9e0bac
src/wagtailmarkdown/utils.py
@@ -34,9 +34,9 @@ def _transform_markdown_into_html(text):
34
def _sanitise_markdown_html(markdown_html):
35
nh3_kwargs = _get_nh3_kwargs()
36
nh3_kwargs["tags"] = set(nh3_kwargs["tags"])
37
- nh3_kwargs["attributes"] = {
38
- key: set(value) for key, value in nh3_kwargs["attributes"].items()
39
- }
+ nh3_kwargs["attributes"] = dict(
+ (key, set(value)) for key, value in nh3_kwargs["attributes"].items()
+ )
40
nh3_kwargs["filter_style_properties"] = set(
41
nh3_kwargs["filter_style_properties"]
42
)
0 commit comments