How to prevent Unicode characters from rendering as emoji in HTML from JavaScript? -
i'm finding unicode special characters fileformat.info's search.
some characters rendering classic black-and-white glyphs, such ⚠ (warning sign, \u26a0
or ⚠
). these preferable, since can apply css styles (such color) them.
others rendering newer cartoony emoji, such ⌛ (hourglass, \u231b
or ⌛
). these not preferable, since cannot style them.
it appears browser making change, since i'm able see hourglass glyph on mac firefox, not mac chrome nor mac safari.
is there way force browsers display older (flat monotone) versions display?
update: seems (from comments below) there text presentation selector, fe0e
, available enforce text-vs-emoji. selector concatenated suffix without space onto character's code, such ⌛︎
html hex or \u231b\ufe0e
js. however, it not honored browsers (eg chrome , edge).
i got way prevent case. append piece of code ︎
after character, force define text rather emoji symbol.
<p>🔒︎</p>
result: 🔒︎
Comments
Post a Comment