Skip to content

Commit ac07a61

Browse files
committed
Change bleach for nh3
1 parent f87b861 commit ac07a61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

versions/templatetags/whats_new_extras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ def inline_markdown(value):
3535
if not value:
3636
return ""
3737
html = _INLINE_RE.sub(_replace_span, escape(value))
38-
cleaned = nh3.clean(html, tags=_ALLOWED_TAGS, attributes={}, strip=True)
38+
cleaned = nh3.clean(html, tags=set(_ALLOWED_TAGS), attributes={})
3939
return mark_safe(cleaned)

0 commit comments

Comments
 (0)