From 0cf953b3eb26e2a743bf402ee14a2af39ceab0ca Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 21 Feb 2022 16:01:07 +0530 Subject: [PATCH] fix: markup lib --- school/lms/md.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/school/lms/md.py b/school/lms/md.py index b072af2a..5acb6322 100644 --- a/school/lms/md.py +++ b/school/lms/md.py @@ -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":