JK
4
Gmail on Desktop Sometimes Removes Commas from Preview Text!
Tested this a few times and it keeps happening. With the text "60,000" in my preview text, the comma is removed in Gmail when on the desktop. This doesn't happen on the Android Gmail app though. Also, it's not ALL commas. I haven't tested all combinations, but it looks like a rare occurence. I "solved" the issue by replacing the comma with its entity code ,
.
Confirmed bug, and confirmed fix as above is to use
,
in place of a comma. In PHP for example:$number_nice= str_replace(",", ",", $number);
To clarify we have a PHP app which is constructing the emails we send. I just wanted to second the report that Gmail is interfering with commas in preheader text, and to offer a solution for anyone constructing emails with PHP. Of course if you are coding them statically, simply keying
,
in place of a comma will do the trick.Hey Thomas,
Can you add context here?
You've declared a PHP function will fix the issue but emails aren't coded in PHP.
Is your fix for a specific platform which allows you to run PHP scripts to replace all commas in an email?
Most code IDEs have a find and replace tool that will suffice.