Skip to content

How can we prevent html entities for parts of the code? #1471

Closed Answered by gabrielmfern
andrewerrico asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, people generally do a replaceAll on the rendered HTML and use a script of their instead of our email export. You would just need to replace all " with actual quotes.


That being said, I would recommend you have a separate Node server that renders the email templates on demand with the props so that you don't need to deal with this kind of stuff. You would send something like an HTTP POST with the props (or variables, like in handlebars) and then it would respond with the rendered HTML.

Talking with a lot of the people that go in the direction of using something like handlebars, it really is a pain, and there isn't much we can do honestly. It's just full of foot guns that y…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by andrewerrico
Comment options

You must be logged in to vote
0 replies
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