- Symptom
- Delivered email shows Smith & SonsApostrophes render as ' in the subject lineNode SDK logs Content with characters ', " or & may need to be escaped with three brackets
- Cause
- Double-brace Handlebars expressions HTML-escape their values, which is visible in subject lines and in values that already contain markup. Triple braces insert the value raw.
- Fix
- Use triple braces for values that may contain ampersands, quotes, or trusted HTML, and keep double braces for untrusted user text in the body.
- Apply
Subject: {{{subject}}} Body: <p>Hi {{{company_name}}}</p>- Affected
- SendGrid dynamic templates, @sendgrid/mail 6.x to 8.x warning, as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders