src/sb/RSS/Feed.php
private function createNode($nodeName, $nodeValue, $cdata = false)
    {
        $node = $this->createElement($nodeName);
        if($cdata){
            $text = $this->createCDATASection($nodeValue);
        } else {
            $text = $this->createTextNode($nodeValue);
        }

        $node->appendChild($text);
        return $node;

    }
private function createNode($nodeName, $nodeValue, $cdata = false)
    {
        $node = $this->createElement($nodeName);
        if($cdata){
            $text = $this->createCDATASection($nodeValue);
        } else {
            $text = $this->createTextNode($nodeValue);
        }

        $node->appendChild($text);
        return $node;

    }
private function createNode ( $ nodeName , $ nodeValue , $ cdata = false ) { $ node = $ this -> createElement ( $ nodeName ) ; if ( $ cdata ) { $ text = $ this -> createCDATASection ( $ nodeValue ) ; } else { $ text = $ this -> createTextNode ( $ nodeValue ) ; } $ node -> appendChild ( $ text ) ; return $ node ; }
Creates and returns a new node with textNode, ready for appending

@param string $nodeName
@param string $nodeValue
@return object DOM node
Creates and returns a new node with textNode ready for appending