Skip to content

Commit

Permalink
fix: html render from calendar invite (#18577)
Browse files Browse the repository at this point in the history
  • Loading branch information
Praashh authored Jan 14, 2025
1 parent 501c49f commit 7a8b9ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lib/CalEventParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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 = (
Expand Down

0 comments on commit 7a8b9ed

Please sign in to comment.