Emojis don't render in polls with pie charts

Couldn’t find any previous report on this and I’m not sure if this is relevant enough to address. Anyhow, reporting the issue.

Emojis in poll answers don’t render well on the poll results when using the pie chart.

Vote below to reproduce the issue.

  • :slight_smile:
  • :expressionless:
  • :frowning:
  • control group

0 voters

15 Likes

Oh that’s a good one. Anything we can do here @falco?

7 Likes

Maybe we default to rendering the raw of the option? Or pass it the option content to our excerpt creation method.

3 Likes

I can look into this monday. I did build the pie chart view after all

7 Likes

Emojis (and other html contents) are now rendered in the the pie chart legend!

  • See it works! :smile:
  • This guy is angry :angry:
  • :poop:

0 voters

11 Likes

Minor, but I think we should hold off on emoji embiggening in this very specific case.

5 Likes

Done in https://github.com/discourse/discourse/pull/8934

4 Likes