Files
test/html_to_django/formatters/unwrap_formatter.py
T
2024-05-05 14:31:34 +02:00

7 lines
159 B
Python

from bs4 import BeautifulSoup
def format(soup: BeautifulSoup) -> None:
for element in soup.find_all(attrs={"dj-unwrap": True}):
element.unwrap()