Skip to content

Commit

Permalink
fix: allow html symbols in xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Shtykhno committed Oct 28, 2024
1 parent 2a135d3 commit c4ce118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtism/data/storage/xml/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c4ce118

Please sign in to comment.