Reputation: 345
The Unicode Emoticon for D = 🇩 and E = 🇪
The Unicode Emoticon for the German (DE) Flag is 🇩🇪
If I have a D and E Emoticon without anything between them then twemoji will combine them into the German flag image. Any idea how to prevent this?
https://fiddle.jshell.net/bb4LLLoy/
<p>π¦π§π¨π©πͺπ«</p>
<span>π¦π§π¨π©πͺπ«</span>
twemoji.parse($('p')[0]);
Upvotes: 1
Views: 823
Reputation: 21259
Insert U+200C
(ZERO WIDTH NON-JOINER) between the characters to prevent them from joining together to form a single grapheme/glyph. In HTML, you can use the entities ‌
or ‌
.
Upvotes: 1