Skip to content

Updates for Emoji 13.1

Compare
Choose a tag to compare
@aaronpk aaronpk released this 27 Aug 19:58
· 29 commits to main since this release

This release includes:

  • Updates the bundled emoji files to Emoji 13.1
  • Adds information about the byte offsets of the emoji found in the string
  • Adds a function to replace emoji with the text equivalent

The Emoji\replace_emoji function replaces the emoji with the text equivalent. You can pass a prefix and suffix to the function as well:

Emoji\replace_emoji('I like 🌮 and 🌯');
// I like taco and burrito

Emoji\replace_emoji('I like 🌮 and 🌯', ':', ':');
// I like :taco: and :burrito: