Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Allow <br /> tags in rendered email HTML

Tim Wilson01d2c8ac3b3e
diff --git a/apps/web/lib/api/workflows/render-campaign-email-html.ts b/apps/web/lib/api/workflows/render-campaign-email-html.ts
index 860104ff0f..6dc77099cb 100644
--- a/apps/web/lib/api/workflows/render-campaign-email-html.ts
+++ b/apps/web/lib/api/workflows/render-campaign-email-html.ts
@@ -85,6 +85,7 @@ const sanitizeHtmlBody = (body: string) => {
"h1",
"h2",
"img",
+ "br",
],
allowedAttributes: {
a: ["href", "name", "target", "rel"],