We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a1f4af commit 8bcef9fCopy full SHA for 8bcef9f
run/markdown-preview/renderer/main.py
@@ -29,9 +29,9 @@ def index():
29
html = markdown.markdown(data)
30
31
# Keep the paragraph tags
32
- bleach.sanitizer.ALLOWED_TAGS.append('p')
+ allowed_tags = list(bleach.sanitizer.ALLOWED_TAGS) + ['p']
33
# Sanitize and return
34
- clean = bleach.clean(html, strip=True)
+ clean = bleach.clean(html, strip=True, tags=allowed_tags)
35
return clean
36
37
run/markdown-preview/renderer/requirements.txt
@@ -1,4 +1,4 @@
1
Flask==2.1.0
2
gunicorn==20.1.0
3
Markdown==3.4
4
-bleach==5.0.0
+bleach==6.0.0
0 commit comments