Skip to content

#3361 Disallow inline styles on em in email sanitizer - #3362

Merged
DenBond7 merged 1 commit into
masterfrom
issue-3361-restrict-email-style-attribute
Nov 27, 2026
Merged

DenBond7 merged 1 commit into
masterfrom
issue-3361-restrict-email-style-attribute

Conversation

@martgil

@martgil martgil commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

This PR stops the email sanitizer from keeping inline CSS on em elements, so sanitized email HTML cannot carry layout styles into the message view.

close #3361


Tests (delete all except exactly one):

  • Tests added or updated

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is free of vulnerabilities

@martgil

martgil commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @DenBond7 @sosnovsky - This one is ready for a review. Thanks!

@DenBond7 DenBond7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@DenBond7
DenBond7 merged commit 83b300d into master Nov 27, 2026
8 checks passed
@DenBond7
DenBond7 deleted the issue-3361-restrict-email-style-attribute branch November 27, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve sanitizer attribute allowlist for Android email rendering

2 participants