Scheduling infrastructure for absolutely everyone.
Use regex to remove br tag
nicolas13a6b9b54934
diff --git a/lib/emails/helpers.ts b/lib/emails/helpers.tsindex 929a0556b63..7c778ce41c6 100644--- a/lib/emails/helpers.ts+++ b/lib/emails/helpers.ts@@ -27,7 +27,7 @@ export function getFormattedMeetingId(videoCallData: VideoCallData): string {export function stripHtml(html: string): string {const aLinkRegExp = /<a[\s\w="_:#;]*href="([^<>"]*)"[\s\w="_:#;]*>([^<>]*)<\/a>/g;return html- .replace("<br />", "\n")+ .replace(/<br\s?\/>/g, "\n").replace(aLinkRegExp, "$2: $1").replace(/<[^>]+>/g, "");}