Always use plain text event descriptions for now
This commit is contained in:
1 parent
936338db3e
commit
749693b6bf
2 files changed
+4
-4
No files matched your search
@@ -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, "");
|
||||
}
|
||||
Reference in new issue
Block a user