Re: CDATA in PHP DOM

From: Date: Thu, 01 Dec 2005 16:50:37 +0000
Subject: Re: CDATA in PHP DOM
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-226714@lists.php.net to get a copy of this message
Guy Brom wrote:
Any idea what's wrong with the following? ($this_item['description'] has some html text I would like to paste as a CDATA section) $item->appendChild($dom->createElement('description', $dom->createCDATASection($this_item['description'])));
createElement takes a string not a DOMNode. Append the CDATASection to the element. Rob

« previous php.general (#226714) next »