From c0d472e95ccf82986d4369247fcaa35fcbff6564 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Tue, 25 Jul 2023 16:21:59 +0530 Subject: [PATCH] refactor: Remove unnecessary code --- frappe/utils/html_utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/frappe/utils/html_utils.py b/frappe/utils/html_utils.py index d3c101349f..ca1cbc3a74 100644 --- a/frappe/utils/html_utils.py +++ b/frappe/utils/html_utils.py @@ -19,7 +19,6 @@ EMOJI_PATTERN = re.compile( def clean_html(html): import bleach - from bleach.css_sanitizer import CSSSanitizer if not isinstance(html, str): return html @@ -45,7 +44,6 @@ def clean_html(html): "tr", }, attributes=[], - css_sanitizer=CSSSanitizer(allowed_css_properties=["color", "border", "border-color"]), strip=True, strip_comments=True, )