0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

🐛 Fixed question marks replacement for some characters in Outlook (#15801)

refs https://ghost.slack.com/archives/C025584CA/p1668101893895139

Added HTML encoding for some special characters that are not always
correctly shown in Outlook. Tested on Litmus.
This commit is contained in:
Simon Backx 2022-11-11 11:52:45 +01:00 committed by GitHub
parent 8ae28ed309
commit b047589cbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,10 @@ const PostEmailSerializer = {
// Fix any unsupported chars in Outlook
juicedHtml = juicedHtml.replace(/'/g, ''');
juicedHtml = juicedHtml.replace(/→/g, '→');
juicedHtml = juicedHtml.replace(//g, '–');
juicedHtml = juicedHtml.replace(/“/g, '“');
juicedHtml = juicedHtml.replace(/”/g, '”');
return juicedHtml;
},