Re: CDATA in PHP DOM

From: Date: Thu, 01 Dec 2005 17:06:33 +0000
Subject: Re: CDATA in PHP DOM
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-226718@lists.php.net to get a copy of this message
worked!! "Rob Richards" <rrichards@php.net> wrote in message news:438F29DD.9030906@php.net... > 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 (#226718) next »