FluentDOM\DOM\CdataSection extends DOMCdataSection and allows it to be cast to a string.
FluentDOM\DOM\CdataSection
$document = new FluentDOM\DOM\Document(); $document->loadXml('<xml><![CDATA[Hello World!]]></xml>'); echo $document->documentElement->firstChild;
Output:
Hello World!
There was an error while loading. Please reload this page.