Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: strip html from preheader for templates where html is allowed #103

Merged
merged 4 commits into from
Aug 27, 2021

Conversation

smcmurtry
Copy link
Contributor

Summary | Résumé

For services with allow_html set to true, if html is entered into the email body, it can be included in the email preheader if it occurs near the start of the email. The email preheader is used to populate the email preview that recipients see on some email clients before opening the email:
Screen Shot 2021-08-27 at 10 49 15 AM

If the email is allowed to contain html, we should strip it from the preheader. I have added that logic and now the preheader is as expected:
Screen Shot 2021-08-27 at 10 48 48 AM

Copy link
Member

@jimleroyer jimleroyer left a comment

Choose a reason for hiding this comment

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

LGTM

@smcmurtry smcmurtry merged commit 8d8a407 into master Aug 27, 2021
@smcmurtry smcmurtry deleted the patch/fix-html-email-preheader branch August 27, 2021 17:35
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.

None yet

2 participants