From 894c0fc8a71b40ca8eb0bfc4f283f06cf40ab384 Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Thu, 15 Aug 2024 19:40:56 -0400 Subject: [PATCH] Change body from HTML to text (#16217) --- packages/app-store/office365calendar/lib/CalendarService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app-store/office365calendar/lib/CalendarService.ts b/packages/app-store/office365calendar/lib/CalendarService.ts index 5024780fac..465b278f4e 100644 --- a/packages/app-store/office365calendar/lib/CalendarService.ts +++ b/packages/app-store/office365calendar/lib/CalendarService.ts @@ -266,8 +266,8 @@ export default class Office365CalendarService implements Calendar { return { subject: event.title, body: { - contentType: "HTML", - content: getRichDescription(event).replace(/\n/g, "
"), + contentType: "text", + content: getRichDescription(event), }, start: { dateTime: dayjs(event.startTime).tz(event.organizer.timeZone).format("YYYY-MM-DDTHH:mm:ss"),