From 1227dd523617c83d19e9f01ec09bb0129cdb9054 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 1 Nov 2019 16:19:59 +0100 Subject: [PATCH] Tweak the template filter for inline imgs --- utils/template_filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/template_filters.py b/utils/template_filters.py index b2fb0eb..4220cb5 100644 --- a/utils/template_filters.py +++ b/utils/template_filters.py @@ -346,7 +346,7 @@ def get_attachment_url(url, size): @filters.app_template_filter() def update_inline_imgs(content): - soup = BeautifulSoup(content) + soup = BeautifulSoup(content, "html5lib") imgs = soup.find_all("img") if not imgs: return content