FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
tr3ntg

tr3ntg

replaceEmojisWithImages

Public
Like
replaceEmojisWithImages
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
1
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/2/2023
Viewing readonly version of main branch: v1
View latest version
README.md

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)

Migrated from folder: Twig/replaceEmojisWithImages

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.