Rendering of ® in post results in :registered:

(Michael Downey) #1


  1. Reply to a topic and use ‘®’ in the body of the post.

Expected results:

  • The ‘®’ symbol appears in the post where desired.

Actual results - editor window:

Actual results - editor preview:

Actual results - rendered post:

(Michael Downey) #2

Seeing the rendering here, suggests that it’s trying to be replaced with an emoji for some reason. (Why?!)

That said, for additional detail, we’re using the Twitter emoji set.


(Michael Downey) #4

Thanks. That’s informative, but unfortunately doesn’t resolve the problem of not rendering correctly if (apparently) you aren’t using the EmojiOne set.

(Robin Ward) #5

I believe this was updated with the new emoji updates, as my table of unicode chars -> emoji replacements grew. If people don’t like it we could remove it. What does everyone think?

(Sam Saffron) #6

@eviltrout I think the bug here is that we are not adding some space around things. So our replacer can leave you with broken markup, maybe add zero width space around emoji subs.

test:registered: :registered:

test:registered: :registered:

(Jeff Atwood) #7

I definitely do not want the HTML entities replaced, e.g.

™ → ™
© → ©
® → ®

The above should not be using Emoji… nor should raw unicode, let’s try raw:

™ © ® → ™ © ®

Yeah that’s not desired. Replacing infinitely scaleable typographical font vectors with emoji images is Not Cool™

(Sam Saffron) #8

The issue though was😅 common to emojis as well☺

as well☺

as well☺

(Robin Ward) #9

Okay, I’ve fixed both issues. Emoji replacements beside words will now work, and I no longer replace “TM, Copyright or Registered” automatically.

(Sam Saffron) #10

Can you get away with a zero width space ?

(Robin Ward) #11

I’m not sure if our emoji code supports that but this approach seems to work well enough.

(Jeff Atwood) #12