Skip to content

Strange unicode characters in rendered HTML #1517

Answered by mbforbes
mbforbes asked this question in Q&A
Discussion options

You must be logged in to vote

I think the purpose of these non-rendering unicode characters is to create padding so that only the preview snippet is shown. (The preview snippet is rendered as as an otherwise-invisible <div> between the <head> and <body>.)

^ example top: keeping the invisible unicode characters, bottom: deleting them.

this might be nice to add to the docs, perhaps https://react.email/docs/components/preview ?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gabrielmfern
Comment options

Answer selected by mbforbes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants