mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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:
parent
8ae28ed309
commit
b047589cbc
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ const PostEmailSerializer = {
|
||||||
|
|
||||||
// Fix any unsupported chars in Outlook
|
// 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, '“');
|
||||||
|
juicedHtml = juicedHtml.replace(/”/g, '”');
|
||||||
return juicedHtml;
|
return juicedHtml;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue