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