Always use plain text event descriptions for now

This commit is contained in:
nicolas committed 2021-07-24 21:23:15 +02:00
1 parent 936338db3e
commit 749693b6bf
2 files changed
+4 -4

No files matched your search

+2
View File
@@ -25,9 +25,11 @@ export function getFormattedMeetingId(videoCallData: VideoCallData): string {
}
export function stripHtml(html: string): string {
const aMailToRegExp = /<a[\s\w="_:#;]*href="mailto:([^<>"]*)"[\s\w="_:#;]*>([^<>]*)<\/a>/g;
const aLinkRegExp = /<a[\s\w="_:#;]*href="([^<>"]*)"[\s\w="_:#;]*>([^<>]*)<\/a>/g;
return html
.replace(/<br\s?\/>/g, "\n")
.replace(aMailToRegExp, "$1")
.replace(aLinkRegExp, "$2: $1")
.replace(/<[^>]+>/g, "");
}