public function getAsPreviewHTML()
    {
        $html = "";
        foreach ($this->getChildren() as $child) {
            $html .= $child->getAsPreviewHTML();
        }

        return $html;
    }
public function getAsPreviewHTML()
    {
        $html = "";
        foreach ($this->getChildren() as $child) {
            $html .= $child->getAsPreviewHTML();
        }

        return $html;
    }
public function getAsPreviewHTML ( ) { $ html = "" ; foreach ( $ this -> getChildren ( ) as $ child ) { $ html .= $ child -> getAsPreviewHTML ( ) ; } return $ html ; }
Iterates through the document's children to return a html version,
in a preview context

@return string
Iterates through the document s children to return a html version in a preview context