react-email
react-email copied to clipboard
[BUG] respect html entities
When performing a email export
, the output file appears to replace htmlentities with their rendered equivalent rather than leave them as htmlentities.
Steps to reproduce:
- add
or’
to a template - run
email export
- rendered output contains
’
rather than htmlentity
Seems like react-dom itself is the one who replaces the html entities like that. Maybe the JSX transform, actually?
If you wrap your entities like:
<>{' '}</>
The entities will be kept the same, as long as you don't have --pretty
.
I'm working on a custom renderer that I thought would tackle this, but it seems like React itself replaces the HTML entities, not react-dom
and not even the JSX Runtime.