mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
IconElement/Fixup
* a DOMElements text value must be escaped manually (e.g. Foror & Tigule)
This commit is contained in:
@@ -102,7 +102,7 @@ class IconElement
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->href)
|
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
|
else
|
||||||
$a = $dom->createTextNode($this->text);
|
$a = $dom->createTextNode($this->text);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user