Better handling of mails encoded with european encodings

master
Kuba Orlik 2 years ago
parent 97eb36c825
commit 707d031986

1
.gitignore vendored

@ -1 +1,2 @@
/node_modules/
/.log/

@ -50,6 +50,7 @@ if (!html.includes("<body")) {
for (const str_to_remove of [
`<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">`,
`<meta http-equiv=Content-Type content="text/html; charset=iso-8859-2">`,
`<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">`,
]) {
html = html.replace(str_to_remove, "");

Loading…
Cancel
Save