Skip to content
Snippets Groups Projects
Commit ef951be4 authored by jan.bednarik's avatar jan.bednarik
Browse files

Fix html sanitizer

parent e1da3c47
No related branches found
No related tags found
2 merge requests!521Fix html sanitizer,!520Fix html sanitizer
Pipeline #8243 passed
...@@ -71,9 +71,7 @@ def strip_all_html_tags(value: str): ...@@ -71,9 +71,7 @@ def strip_all_html_tags(value: str):
:param value: string to sanitize :param value: string to sanitize
""" """
return bleach.clean( return bleach.clean(value, tags=[], attributes=[], strip=True, strip_comments=True)
value, tags=[], attributes=[], styles=[], strip=True, strip_comments=True
)
def trim_to_length(value: str, max_length: int = 150): def trim_to_length(value: str, max_length: int = 150):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment