Change BS-parser to lxml insted of html5lib, do prevent another dependency

This commit is contained in:
Martin Gross
2019-08-04 17:25:02 +02:00
parent 4b3f6ba94b
commit d37939bc2a

View File

@@ -344,7 +344,7 @@ def render_mail(template, context):
def replace_images_with_cid_paths(body_html):
if body_html:
email = BeautifulSoup(body_html, "html5lib")
email = BeautifulSoup(body_html, "lxml")
image_counter = 1
cid_images = []
for image in email.findAll('img'):