diff --git a/decode-spam-headers.py b/decode-spam-headers.py
old mode 100644
new mode 100755
index ff0c538..3746e9b
--- a/decode-spam-headers.py
+++ b/decode-spam-headers.py
@@ -6648,14 +6648,11 @@ def formatToHtml(body, headers):
body = body.replace(testEnd, '')
body = body.replace('\n', '
\n').replace('\t', '\t' + ' ' * 4).replace(' ', ' ')
- headers = headers.replace('\n', '
\n').replace('\t', '\t' + ' ' * 4).replace(' ', ' ')
body2 = body
-
for m in re.finditer(r'(<[^>]+>)', body, re.I):
a = m.group(1)
b = a.replace(' ', ' ')
body2 = body2.replace(a, b)
-
body = body2
outputHtml = f'''
@@ -6781,7 +6778,7 @@ def formatToHtml(body, headers):
font-style: normal;
font-variant: normal;
font-weight: 400;
- line-height: 18.5714px;
+ line-height: 18.5714px;
}}
a {{
@@ -6804,9 +6801,9 @@ def formatToHtml(body, headers):
Original SMTP Headers
-
-{headers}
-
+
+{escape(headers)}
+
@@ -6815,7 +6812,7 @@ def formatToHtml(body, headers):
{body}