/** * * @param DOMDocument $xml * @return DOMElement * @deprecated since version 2.0 */ public function getNode($xml) { $node = parent::getNode($xml); $contentNode = $xml->createElement('content'); if (!$this->rawinsert) { $contentNode->appendChild($xml->createCDATASection($this->formatHTML($this->html, $this->color))); } else { $contentNode->appendChild($xml->createCDATASection($this->html)); } $node->appendChild($contentNode); return $node; }