replaceEmojisWithImages
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
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- emoji images for replacement are hosted at netlify (sourced from private repo)