From ef951be4fb74913a5833e9ddf604e768c2bcc846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bedna=C5=99=C3=ADk?= <jan.bednarik@gmail.com> Date: Thu, 26 May 2022 11:50:22 +0200 Subject: [PATCH] Fix html sanitizer --- shared/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shared/utils.py b/shared/utils.py index ad56f316..a720a600 100644 --- a/shared/utils.py +++ b/shared/utils.py @@ -71,9 +71,7 @@ def strip_all_html_tags(value: str): :param value: string to sanitize """ - return bleach.clean( - value, tags=[], attributes=[], styles=[], strip=True, strip_comments=True - ) + return bleach.clean(value, tags=[], attributes=[], strip=True, strip_comments=True) def trim_to_length(value: str, max_length: int = 150): -- GitLab