SendGrid · api · fg-0423

SendGrid template shows & or ' instead of the ampersand or apostrophe

If you see Delivered email shows Smith & Sons, the cause and the fix for SendGrid are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun