From c4ce1180a362cbe8eab6b8395591b0152a916065 Mon Sep 17 00:00:00 2001 From: Vitalii Shtykhno Date: Mon, 28 Oct 2024 16:22:04 +0100 Subject: [PATCH] fix: allow html symbols in xml --- src/qtism/data/storage/xml/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtism/data/storage/xml/Utils.php b/src/qtism/data/storage/xml/Utils.php index 8930aa811..076c78531 100644 --- a/src/qtism/data/storage/xml/Utils.php +++ b/src/qtism/data/storage/xml/Utils.php @@ -450,7 +450,7 @@ public static function removeAllButFirstOccurrence(string $subject, string $toRe */ public static function findExternalNamespaces(string $xml): array { - $doc = new SimpleXMLElement($xml); + $doc = new SimpleXMLElement(htmlspecialchars_decode($xml)); return array_filter( $doc->getDocNamespaces(), static function ($key) {