Skip to content
Snippets Groups Projects
Verified Commit 4aaecccb authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Merge branch 'master' of edugit.org:AlekSIS/official/AlekSIS

parents f96e9cac a53a2eda
No related branches found
No related tags found
No related merge requests found
Pipeline #1985 failed
from typing import Any
from django import template
from bs4 import BeautifulSoup
......@@ -14,7 +12,7 @@ def add_class_to_el(value: str, arg: str) -> str:
Example: {{ mymodel.myhtmlfield|add_class_to_el:"ul,browser-default"
"""
el, cls = value.split(",")
el, cls = arg.split(",")
soup = BeautifulSoup(value, "html.parser")
for el in soup.find_all(el):
......
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