Update bleach to 6.1.0
This commit is contained in:
parent
1303f539c3
commit
b6174d9101
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ def clean(input_text: str) -> str:
|
|||
"""Run through "bleach" """
|
||||
return bleach.clean(
|
||||
input_text,
|
||||
tags=[
|
||||
tags={
|
||||
"p",
|
||||
"blockquote",
|
||||
"br",
|
||||
|
@ -20,7 +20,7 @@ def clean(input_text: str) -> str:
|
|||
"ul",
|
||||
"ol",
|
||||
"li",
|
||||
],
|
||||
},
|
||||
attributes=["href", "rel", "src", "alt", "data-mention"],
|
||||
strip=True,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue