public function saveHTML($path = '', $trim = true)
    {
        if (is_string($path) && $path !== '') {
            // no processing as just return xpath html result no adding doctype.
            $this->output['raw'] = $this->view($path);
        } else {
            $this->output['raw'] = parent::saveHTML();
        }

        $this->outputProcess();

        $raw = $this->output['raw'];

        return $trim ? trim($raw) : $raw;
    }
public function saveHTML($path = '', $trim = true)
    {
        if (is_string($path) && $path !== '') {
            // no processing as just return xpath html result no adding doctype.
            $this->output['raw'] = $this->view($path);
        } else {
            $this->output['raw'] = parent::saveHTML();
        }

        $this->outputProcess();

        $raw = $this->output['raw'];

        return $trim ? trim($raw) : $raw;
    }
public function saveHTML ( $ path = '' , $ trim = true ) { if ( is_string ( $ path ) && $ path !== '' ) { // no processing as just return xpath html result no adding doctype.
 $ this -> output [ 'raw' ] = $ this -> view ( $ path ) ; } else { $ this -> output [ 'raw' ] = parent :: saveHTML ( ) ; } $ this -> outputProcess ( ) ; $ raw = $ this -> output [ 'raw' ] ; return $ trim ? trim ( $ raw ) : $ raw ; }
Extend the native saveHTML method.
Allow path search functionality.

@param string  $path Output file path.
@param boolean $trim Trim the output of surrounding space.

@return	string
Extend the native saveHTML method . Allow path search functionality .