From 13a6b9b54934b94f9d03c3f480167611209502af Mon Sep 17 00:00:00 2001 From: nicolas Date: Wed, 21 Jul 2021 18:20:08 +0200 Subject: [PATCH] Use regex to remove br tag --- lib/emails/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/emails/helpers.ts b/lib/emails/helpers.ts index 929a0556..7c778ce4 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 = /"]*)"[\s\w="_:#;]*>([^<>]*)<\/a>/g; return html - .replace("
", "\n") + .replace(//g, "\n") .replace(aLinkRegExp, "$2: $1") .replace(/<[^>]+>/g, ""); }