Accepts an HTML string (body.html
) and returns an emoji-escaped replacement. The purpose of this is due to official PDF spec's lack of support for emojis. This can be seen in the Anvil PDF Generation service as well - emojis are not rendered.
node-emoji
github here - replaces all emojis with spans