-
Notifications
You must be signed in to change notification settings - Fork 779
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
Warn if dynamic template contains non-escaped character #793
Warn if dynamic template contains non-escaped character #793
Conversation
Hello @reedsa, |
@@ -154,4 +155,63 @@ describe('Mail', function() { | |||
}); | |||
|
|||
}); | |||
|
|||
describe('dynamic template handlebars substitutions', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
righteous
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
Hello @reedsa, |
Hello @reedsa, |
Any option to stop this warning message other than escaping characters? Thanks. |
Hello @umarhussain15, Would you mind creating a new ticket for your request? That way we can properly track progress. Thanks! With best regards, Elmer |
Hi @thinkingserious I just checked latest version of code and #932 has added a solution to hide warnings for dynamic template data. So I think there is no need to create a new ticket. |
Awesome, thanks for the follow up! |
Hi @thinkingserious! can you push forward this pull request with new release? Thank you a lot |
How do I get rid of that warning? I have 3 curly brackets, why is it littering my logs? There's no way to disable it? I need my logs clean for logging purposes. Cheers |
const DYNAMIC_TEMPLATE_CHAR_WARNING = ` | ||
Content with characters ', " or & may need to be escaped with three brackets | ||
{{{ content }}} | ||
See https://sendgrid.com/docs/ui/sending-email/using-handlebars/ for more information.`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url leads to -> 404 not found page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by #943
Closes #790
Checklist
Short description of what this PR does:
If you have questions, please send an email to Sendgrid, or file a Github Issue in this repository.