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.

image of warning glyph

others rendering newer cartoony emoji, such ⌛ (hourglass, \u231b or ⌛). these not preferable, since cannot style them.

image of hourglass emoji

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 ⌛&#xfe0e 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>🔒&#xfe0e;</p> 

result: 🔒︎

#sourcea #sourceb


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -