aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

How the fuck do you type :warning: in a JavaScript file and have the browser render it as a GRAPHICAL emoji? The following do not work:

⚠️
const warningEmoji = '\u{26A0}\u{FE0F}'; {warningEmoji}
{${warningEmoji}}

It just keeps rendering as the TEXT form ⚠, not ⚠️ like I want.

Follow

@cadey have you tried font-variant-emoji: emoji;

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.