Encode Special Characters for HTML Email
Encode characters like &, <, >, and © as HTML entities so they render correctly in all email clients.
Common HTML entities reference
Email tips
HTML email clients are strict. Unencoded & characters break rendering in Outlook. Always encode & as & in HTML email code.
Legal symbols like ©, ®, and ™ should be written as ©, ®, and ™ in email HTML for universal compatibility.
Em dashes (—) in email subject lines sometimes display as ? on certain clients. Use — in HTML body, but avoid in subject lines.
After encoding, test your HTML in Litmus or Email on Acid to confirm all characters render correctly across clients.
Kuidas see töötab
Miks kasutada meie oma?
Also check out…
Encode Content for RSS Feeds
Encode HTML content for RSS feed item descriptions
Sanitise User Input for HTML Output
Encode user-provided strings before inserting them
Encode User Content for Web Display
Prevent XSS attacks by encoding user-generated con
Encode Content for XML
Encode special characters for XML files, RSS feeds
