Updates for Emoji 13.1
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: