Error interpolating variables inside headings
See original GitHub issueHey, first of all thanks for creating this awesome plugin! 😃
Description
When adding a variable at data
object param (in sendTemplatedEmail
), and used in the template inside a heading
tag, lodash throws a ReferenceError. I think this is happening because the htmlToText
function parses headings to uppercase, creating a mismatch when interpolating.
For example, using a variable total
inside the data param:
At the template | At the parsed bodyText |
---|---|
![]() |
![]() |
Opened a possible solution at #37
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Why does my function using string interpolation give me two ...
Solved. I was overwriting the total() function with its returned value in the second example which allowed me to get the right answer...
Read more >Errors when computing the interpolation function - COMSOL
Since the error message says the software is unable to evaluate a VARIABLE, it looks like the problem is that you may not...
Read more >GraphQL Schema Auto Fetch does not interpolate variables.
When using a variable such as {{host}} as the URL for the GraphQL endpoint the request to auto fetch fails. In the console...
Read more >SASS: interpolation in a name of variable - Krasimir Tsonev
The problem The idea is to use a variable and construct another thing. However it is currently not possible to use interpolation in...
Read more >Template literals (Template strings) - JavaScript | MDN
However, invalid escape sequences will cause a syntax error, unless a tag function is used. expression. An expression to be inserted in the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you for have found the bug and provided the fix @GuilleAngulo !! LGTM, I really appreciate
Yay! happy it was useful!