Posted by Rob Richards on 10/22/37 11:33
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
[Back to original message]
|