points by mrwnmonm 3 years ago

Wait, HN renders emojis?

dang 3 years ago

It doesn't except for a 10-second window today. https://news.ycombinator.com/item?id=34460417

  • sph 3 years ago

    I swear I saw a heart emoji a few months ago in a comment at the bottom of a long thread. Not sure if it was a bug, an easter egg, or maybe a figment of my imagination.

    Also I wonder if you have a secret dashboard full of buttons to control this website, and now there's a "Enable emojis for 10 seconds" button, next to "Subtract 1 karma to anyone with a custom topcolor" and "Promote a random Lisp post to the front page"

    • dhosek 3 years ago

      It might have been a rendering of U+2661 ♡ or U+2665 ♥ or U+2764 (this last one does get stripped by HN) which are not emoji but may be rendered as such by the browser.

      • sph 3 years ago

        This is dangerous information to spread. Censor yourself, or it will be abused and we will lose this easter egg forevermore.

        Let's keep it a secret between you, I and dang's emoji stripping code.

        • ushakov 3 years ago

          🆔 this type of thing works too

          • sph 3 years ago

            Ah ffs, this is why we can't have nice things on the Internet.

          • Symbiote 3 years ago

            There's a fairly new CSS selector to configure emoji rendering, choosing between a text-like rendering and the coloured emoji rendering.

            So far, there's very little browser support.

            https://developer.mozilla.org/en-US/docs/Web/CSS/font-varian...

            • pxc 3 years ago

              I really love the text-like style. I didn't know Unicode added as composing character to ask for that style!

              That's awesome. Those are so easy to read and I love how they play nice with users' font coloring choices.

  • SLWW 3 years ago

    That does keep things interesting (as long as it's not super common) though i do wonder how it looked previously (did it just strip the emoji or is there like a ":pwease:" dropped in?

    • pxc 3 years ago

      it just stripped the emoji

chungy 3 years ago

Technically speaking, no, HN doesn't render any titles. Your browser is displaying U+1F97A, which is sent over-the-wire as the bytes \xF0\x9F\xA5\xBA (UTF-8 encoding).

  • deathanatos 3 years ago

    By "render" they probably meant "didn't strip"; HN will strip emoji from comments/titles, generally.

    E.g., the emoji of the article: "" but I suspect there won't be anything between the quotes.

    (An exception was made for the title, in this case; dang mentions that in a comment in the comments here.)

    • mrwnmonm 3 years ago

      > By "render" they probably meant "didn't strip"

      Yes, this is what I meant.