/** * nastavi obsah item * @param string $value */ public function setContent($value) { try { if (htmlspecialchars($value) == $value && htmlspecialchars_decode($value) == $value) { $this->node->nodeValue = $value; } else { foreach ($this->node->childNodes as $nodeChild) { $this->node->removeChild($nodeChild); } $this->node->appendChild($this->config->getDom()->createCDATASection($value)); } } catch (Exception $e) { throw $e; } }