From 1ca3ba79072fde7978ec3dff66c8fbcfc650cdb8 Mon Sep 17 00:00:00 2001 From: ZC-Lehwald <99816383+ZC-Lehwald@users.noreply.github.com> Date: Wed, 16 Feb 2022 15:54:43 +0100 Subject: [PATCH] Update CalendarExport.php Html Tags for Calendar Description in Outlook enabled. Striping Tags needs to be done before setting Description. --- src/CalendarExport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CalendarExport.php b/src/CalendarExport.php index 9961e6c..3d151d3 100755 --- a/src/CalendarExport.php +++ b/src/CalendarExport.php @@ -209,7 +209,8 @@ public function getStream() $this->stream ->addItem('SUMMARY:'.$event->getSummary()) - ->addItem('DESCRIPTION:'.$this->formatter->getEscapedText($event->getDescription())); + ->addItem('DESCRIPTION:'.$this->formatter->getEscapedText($event->getDescription())) + ->addItem('X-ALT-DESC;FMTTYPE=text/html:'.$this->formatter->getEscapedText($event->getDescription())); if ($event->getClass()) { $this->stream->addItem('CLASS:'.$event->getClass());