IconElement/Fixup

* a DOMElements text value must be escaped manually
   (e.g. Foror & Tigule)
This commit is contained in:
Sarjuuk
2025-10-06 23:03:30 +02:00
parent a7e9ac2cf2
commit e300086cc8

View File

@@ -102,7 +102,7 @@ class IconElement
}
if ($this->href)
($a = $dom->createElement('a', $this->text))->setAttribute('href', $this->href);
($a = $dom->createElement('a', htmlentities($this->text)))->setAttribute('href', $this->href);
else
$a = $dom->createTextNode($this->text);