-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you send HTML in the dynamic template data #738
Comments
Hi @jmichas What you want to do is change your content from using
Please let us know if this does not work for you. |
FYI the documentation on sendgrids sucks big time why not spend some effort to update it? FYI, today the doc at https://sendgrid.com/docs/api-reference/ doesn't talk about |
Does the above still apply? I am not getting the html to render using the {{{ }}} in my template. Bringing over html in a substitution tag. Hi Josh and the
|
@ecologik it should definitely do it if you are using the |
@syedhassan Thanks for the response. Interesting fix... I created another text area in the template creator and attempted to {{{ }}} my replacement var in that new area. It worked. I deleted that template object and tried it again with the original template object. It worked. I do find the Template Creator to be a bit buggy and has removed some of my objects out of nowhere. This is closed. Thanks again. |
Hey there! Is it possible to use the |
After testing, actually is not necessary to use the curly braces to render raw HTML in Legacy templates. Just put the HTML into the substitution text like this: |
Issue Summary
I'm currently using the workaround for sending template data to the API and it seems to be working fine. The only thing I can't figure out is how I can send an HTML fragment as a substitution.
Steps to Reproduce
So, I am using this as part of my email service:
Before that I set the substitutions which will be converted to the dynamic_template_data.
If I use something like:
The
{{Content}}
placeholder in my template is rendered with the<br />
visible in the test string.How can I get the template to replace the placeholder with my html content and render it as html?
(Like what the Html.Raw() method does in razor)
Thanks,
Jason
The text was updated successfully, but these errors were encountered: