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;
    }