src/Debug/Output/Html.php
public function dump($val, $sanitize = true, $tagName = 'span')
    {
        $this->wrapAttribs = array(
            'class' => array(),
            'title' => null,
        );
        $this->sanitize = $sanitize;
        $val = parent::dump($val);
        if ($tagName && !\in_array($this->dumpType, array('recursion'))) {
            $wrapAttribs = $this->debug->utilities->arrayMergeDeep(
                array(
                    'class' => array(
                        't_'.$this->dumpType,
                        $this->dumpTypeMore,
                    ),
                ),
                $this->wrapAttribs
            );
            $val = $this->debug->utilities->buildTag($tagName, $wrapAttribs, $val);
        }
        $this->wrapAttribs = array();
        return $val;
    }
public function dump($val, $sanitize = true, $tagName = 'span')
    {
        $this->wrapAttribs = array(
            'class' => array(),
            'title' => null,
        );
        $this->sanitize = $sanitize;
        $val = parent::dump($val);
        if ($tagName && !\in_array($this->dumpType, array('recursion'))) {
            $wrapAttribs = $this->debug->utilities->arrayMergeDeep(
                array(
                    'class' => array(
                        't_'.$this->dumpType,
                        $this->dumpTypeMore,
                    ),
                ),
                $this->wrapAttribs
            );
            $val = $this->debug->utilities->buildTag($tagName, $wrapAttribs, $val);
        }
        $this->wrapAttribs = array();
        return $val;
    }
Dump value as html

@param mixed        $val      value to dump
@param boolean      $sanitize (true) apply htmlspecialchars?
@param string|false $tagName  (span) tag to wrap value in (or false)

@return string