style: banner

This commit is contained in:
Jannat Patel
2022-02-16 20:41:20 +05:30
parent a23a356bf6
commit 1e7209bafa
3 changed files with 39 additions and 28 deletions

View File

@@ -105,7 +105,7 @@ def sanitize_html(html, macro):
any broken tags. This makes sures that all those things are fixed
before passing to the etree parser.
"""
soup = BeautifulSoup(html, features="html5lib")
soup = BeautifulSoup(html, features="lxml")
nodes = soup.body.children
classname = ""
if macro == "YouTubeVideo":