refactor: Remove unnecessary code

This commit is contained in:
Suraj Shetty 2023-07-25 16:21:59 +05:30
parent 8ff913b8ad
commit c0d472e95c

View file

@ -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,
)