Use "strip" in bleach
This removes forbidden html, rather than leaving them in place but unrendered.
This commit is contained in:
parent
70beb24d95
commit
9d9b7f366a
2 changed files with 4 additions and 3 deletions
|
@ -22,4 +22,5 @@ def clean(input_text):
|
|||
"li",
|
||||
],
|
||||
attributes=["href", "rel", "src", "alt"],
|
||||
strip=True,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue