From fef5b8c1ec68f61399b0a2bb54e880fdf29e4f42 Mon Sep 17 00:00:00 2001 From: Jens Schuppe Date: Tue, 31 May 2022 13:17:48 +0200 Subject: [PATCH] Decode HTML entities in iCalendar text --- CRM/Utils/ICalendar.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Utils/ICalendar.php b/CRM/Utils/ICalendar.php index 7eee09c9eb..7d77ef07a1 100644 --- a/CRM/Utils/ICalendar.php +++ b/CRM/Utils/ICalendar.php @@ -33,6 +33,7 @@ class CRM_Utils_ICalendar { */ public static function formatText($text) { $text = strip_tags($text); + $text = html_entity_decode($text, ENT_QUOTES | ENT_HTML401, 'UTF-8'); $text = str_replace("\\", "\\\\", $text); $text = str_replace(',', '\,', $text); $text = str_replace(';', '\;', $text); -- 2.25.1