fix: html render from calendar invite (#18577)

This commit is contained in:
Praash
2025-01-14 20:40:31 +00:00
committed by GitHub
parent 501c49f369
commit 7a8b9ededb
+2 -2
View File
@@ -7,7 +7,6 @@ import type { CalendarEvent, Person } from "@calcom/types/Calendar";
import { WEBAPP_URL } from "./constants";
import getLabelValueMapFromResponses from "./getLabelValueMapFromResponses";
import isSmsCalEmail from "./isSmsCalEmail";
import { markdownToSafeHTML } from "./markdownToSafeHTML";
const translator = short();
@@ -131,8 +130,9 @@ export const getDescription = (calEvent: Pick<CalendarEvent, "description">, t:
if (!calEvent.description) {
return "";
}
const plainText = calEvent.description.replace(/<\/?[^>]+(>|$)/g, "").replace(/_/g, " ");
return `\n${t("description")}
${markdownToSafeHTML(calEvent.description)}
${plainText}
`;
};
export const getLocation = (