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

feat(api): Allow img tags in the In-App & Email Editor #5312

Merged

Conversation

efaraz27
Copy link
Contributor

What change does this PR introduce?

Novu used an npm packaged called sanitize-html, the default allowed tags, doesnt include img tags, this PR aims to include it as it was done for the style tag in this #4841.

Why was this change needed?

Closes #5310

Other information (Screenshots)

Copy link

netlify bot commented Mar 18, 2024

👷 Deploy request for dev-web-novu pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 8803bf7

@scopsy
Copy link
Contributor

scopsy commented Mar 18, 2024

@efaraz27 seems like the unit test that you added is failing, could you take a look ?

@efaraz27
Copy link
Contributor Author

@scopsy fixed now, have a look

@efaraz27 efaraz27 requested a review from scopsy March 18, 2024 12:31
Copy link
Contributor

@LetItRock LetItRock left a comment

Choose a reason for hiding this comment

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

looks good to me! thank you! 🙌

@LetItRock LetItRock merged commit 92d1cb6 into novuhq:next Mar 18, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Allow img tags and attributes in the In-App & Email Editor
3 participants