WordPress has recently (5.4? 5.5? 🤔) started the annoying practice of replacing some Unicode characters (especially emojis) with images.
Now, instead of always showing text characters, emojis are getting replaced by images. That is, if the text is
foo👍bar, the thumbs-up character gets replaced with an
img tag with the alt attribute of "👍", so the string:
gets replaced with:
foo<img draggable="false" role="img" class="emoji" alt="👍" src="https://s.w.org/images/core/emoji/13.0.0/svg/1f44d.svg">bar
🤦 This is incredibly frustrating for a lot of reasons:
- It breaks the text up.
- It turns searchable text into non-searchable images.
- It drastically increases the size.
- It requires pulling external resources which requires more bandwidth, CPU, and memory.
- It prevents them from being styled with CSS. You cannot apply things like colors to images like you can with text, (yes, even emojis can be colored).
- Other issues…
I checked to make sure this unwanted behavior isn't a consequence of any plugins I'm using, and it's definitely not. Something in a recent update to WordPress (5.4 or 5.5) began this behavior.
I did a web-search for "prevent wordpress from replacing emojis with images" and there's absolutely nothing. 😕 I did manage to fine one SO post that was almost similar, but the suggestion to add a variation-selector character after the emoji didn't work, WordPress still replaces it with an image. I also checked the release notes for the past couple of minor versions and didn't see anything either.
How can I get WordPress to knock it off?