Skip to content

Scheduling infrastructure for absolutely everyone.

Change body from HTML to text (#16217)

Joe Au-Yeung894c0fc8a71b
diff --git a/packages/app-store/office365calendar/lib/CalendarService.ts b/packages/app-store/office365calendar/lib/CalendarService.ts
index 5024780fac4..465b278f4e2 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, "<br>"),
+ contentType: "text",
+ content: getRichDescription(event),
},
start: {
dateTime: dayjs(event.startTime).tz(event.organizer.timeZone).format("YYYY-MM-DDTHH:mm:ss"),