Skip to content

Commit

Permalink
Add autoescape to rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
KnugiHK committed Jun 15, 2023
1 parent 594a04a commit bfdc68c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Whatsapp_Chat_Exporter/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def create_html(
template_dir = os.path.dirname(template)
template_file = os.path.basename(template)
templateLoader = jinja2.FileSystemLoader(searchpath=template_dir)
template_env = jinja2.Environment(loader=templateLoader)
template_env = jinja2.Environment(loader=templateLoader, autoescape=True)
template_env.globals.update(
determine_day=determine_day,
no_avatar=no_avatar
Expand Down
2 changes: 1 addition & 1 deletion Whatsapp_Chat_Exporter/extract_iphone.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def create_html(
template_dir = os.path.dirname(template)
template_file = os.path.basename(template)
templateLoader = jinja2.FileSystemLoader(searchpath=template_dir)
template_env = jinja2.Environment(loader=templateLoader)
template_env = jinja2.Environment(loader=templateLoader, autoescape=True)
template_env.globals.update(
determine_day=determine_day,
no_avatar=no_avatar
Expand Down

0 comments on commit bfdc68c

Please # to comment.