mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Change BS-parser to lxml insted of html5lib, do prevent another dependency
This commit is contained in:
@@ -344,7 +344,7 @@ def render_mail(template, context):
|
|||||||
|
|
||||||
def replace_images_with_cid_paths(body_html):
|
def replace_images_with_cid_paths(body_html):
|
||||||
if body_html:
|
if body_html:
|
||||||
email = BeautifulSoup(body_html, "html5lib")
|
email = BeautifulSoup(body_html, "lxml")
|
||||||
image_counter = 1
|
image_counter = 1
|
||||||
cid_images = []
|
cid_images = []
|
||||||
for image in email.findAll('img'):
|
for image in email.findAll('img'):
|
||||||
|
|||||||
Reference in New Issue
Block a user