Skip to content

3.9.2: Preserve sent email styling in previews

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 05:53
· 0 commits to main since this release

Archived email previews now retain the original message’s styles and body attributes, so they more closely match the email as sent. The preview continues to sanitize unsafe content and run inside its existing sandbox.

Fixed

  • Archive HTML as sent and sanitize it when rendering the preview, preserving styles such as display and border-radius without allowing scripts or event handlers. Plain-text content remains sanitized. Consumers that render the archived htmlText API field themselves must sanitize it; previously archived messages retain their existing filtered HTML (#172, @christopherholst).