Closed netwire88 closed 3 years ago
Hi, We have a string that contains \n. How do we submit it to the mail send API as a variable for dynamic template?
\n
I tried:
content.gsub!("\n", "<br/>") personalization.add_dynamic_template_data( { 'subject' => subject, 'content' => content } )
but the text shows up as <br/> and not escaped.
<br/>
I chatted with SendGrid support and they referred me to post here.
I couldn't find an answer here but found it on Stackoverflow. Essentially, I need to
<br>
{{{content}}}
{{content}}
Hi, We have a string that contains
\n
. How do we submit it to the mail send API as a variable for dynamic template?I tried:
but the text shows up as
<br/>
and not escaped.I chatted with SendGrid support and they referred me to post here.