1
0
Fork 0

Use "strip" in bleach

This removes forbidden html, rather than leaving them in place but
unrendered.
This commit is contained in:
Mouse Reeve 2022-07-04 13:45:28 -07:00
parent 70beb24d95
commit 9d9b7f366a
2 changed files with 4 additions and 3 deletions

View file

@ -22,4 +22,5 @@ def clean(input_text):
"li",
],
attributes=["href", "rel", "src", "alt"],
strip=True,
)