My issue lies in my ✳ (Eight-Spoked Asterisk) symbol being converted to an emoji on iOS/android devices.
Find more about the Eight-Spoked Asterisk Emoji here.
Could someone guide me on how to prevent the normal symbol ✳ from being transformed into an emoji asterisk? I am using react/typescript.
For instance:
I would like 1234 ✳✳✳✳ ✳✳✳✳ 5678 - this looks good on desktop.
I do not want 1234 1234 ✳️✳️✳️✳️ ✳️✳️✳️✳️ 5678 - this happens on ios/android.
Thank you
EDIT - Here is the function that performs the replacement:
export const hideDigits = (value: string) => {
const parsedValue = value.slice(0, 4) + value.slice(4, value.length -4).replace(/\d/g,'\u2733') + value.slice(value.length -4);
return (
normalizeVoucherCode(parsedValue)
);
};