diff --git a/aleksis/core/templatetags/html_helpers.py b/aleksis/core/templatetags/html_helpers.py index a30a230ce4f9aebdf93499ef8ff511befe2a8871..16238fcd00b0a88cb8eb8d6e25fb190ec432e1a5 100644 --- a/aleksis/core/templatetags/html_helpers.py +++ b/aleksis/core/templatetags/html_helpers.py @@ -15,6 +15,6 @@ def add_class_to_el(value: str, arg: str) -> str: soup = BeautifulSoup(value, "html.parser") for el in soup.find_all(el): - el["class"] = el.get("class", "") + f" {cls}" + el["class"] = el.get("class", []) + [cls] return str(soup)