public function setContent($text, $type = 'text')
    {
        $this->setType($type);
        $this->getDomElement()->nodeValue = $text;
        $this->setCachedProperty('content', $this->parseContent());
    }
public function setContent($text, $type = 'text')
    {
        $this->setType($type);
        $this->getDomElement()->nodeValue = $text;
        $this->setCachedProperty('content', $this->parseContent());
    }
public function setContent ( $ text , $ type = 'text' ) { $ this -> setType ( $ type ) ; $ this -> getDomElement ( ) -> nodeValue = $ text ; $ this -> setCachedProperty ( 'content' , $ this -> parseContent ( ) ) ; }
Set new text.

@param string $text Text.
@param string $type Content type: "text", "html", or "xhtml"

@since 1.0
Set new text .