No HTMl in rich event description

This commit is contained in:
nicolas committed 2021-07-21 14:01:48 +02:00
1 parent 5cf6e61061
commit e5d94e74a2
2 files changed
+11 -2

No files matched your search

+9
View File
@@ -86,4 +86,13 @@ export default class CalEventParser {
eventCopy.description = this.getRichDescriptionHtml();
return eventCopy;
}
/**
* Returns a calendar event with rich description as plain text.
*/
public asRichEventPlain(): CalendarEvent {
const eventCopy: CalendarEvent = { ...this.calEvent };
eventCopy.description = this.getRichDescription();
return eventCopy;
}
}