protected function _string($data, $name, $advType = '')
    {
        $dataLength = $this->_strlen($data);

        $_extra = false;
        if ($advType == 'html') {
            $_extra = true;
            $_      = 'HTML Code';

            $data = '<pre class="jbpreview">' . $data . '</pre>';

        } elseif ($advType == 'source') {

            $data = trim($data);
            if ($data && strpos($data, '<?') !== 0) {
                $_      = 'PHP Code';
                $_extra = true;
                $data   = "<?php" . PHP_EOL . PHP_EOL . $data;
                $data   = '<pre class="jbpreview">' . highlight_string($data, true) . '</pre>';
            } else {
                $_    = '// code not found';
                $data = null;
            }

        } else {
            $_ = $data;

            if (!(
                strpos($data, "\r") === false &&
                strpos($data, "\n") === false &&
                strpos($data, "  ") === false &&
                strpos($data, "\t") === false
            )
            ) {
                $_extra = true;
            } else {
                $_extra = false;
            }

            if ($this->_strlen($data)) {
                if ($this->_strlen($data) > self::$_config['dump']['stringLength']) {
                    if (function_exists('mb_substr')) {
                        $_ = mb_substr($data, 0, self::$_config['dump']['stringLength'] - 3) . '...';
                    } else {
                        $_ = substr($data, 0, self::$_config['dump']['stringLength'] - 3) . '...';
                    }

                    $_extra = true;
                }

                $_    = $this->_htmlChars($_);
                $data = '<textarea readonly="readonly" class="jbpreview">' . $this->_htmlChars($data) . '</textarea>';
            }
        }
        ?>
        <li class="jbchild">
            <div
                class="jbelement <?php echo $_extra ? ' jbexpand' : ''; ?>" <?php if ($_extra) { ?> onClick="jbdump.toggle(this);"<?php } ?>>
                <span class="jbname"><?php echo $name; ?></span>
                (<span class="jbtype jbtype-string">String</span>, <?php echo $dataLength; ?>)
                <span class="jbvalue"><?php echo $_; ?></span>
            </div>
            <?php if ($_extra) { ?>
                <div class="jbnest" style="display:none;">
                    <ul class="jbnode">
                        <li class="jbchild"><?php echo $data; ?></li>
                    </ul>
                </div>
            <?php } ?>
        </li>
    <?php

    }
protected function _string($data, $name, $advType = '')
    {
        $dataLength = $this->_strlen($data);

        $_extra = false;
        if ($advType == 'html') {
            $_extra = true;
            $_      = 'HTML Code';

            $data = '<pre class="jbpreview">' . $data . '</pre>';

        } elseif ($advType == 'source') {

            $data = trim($data);
            if ($data && strpos($data, '<?') !== 0) {
                $_      = 'PHP Code';
                $_extra = true;
                $data   = "<?php" . PHP_EOL . PHP_EOL . $data;
                $data   = '<pre class="jbpreview">' . highlight_string($data, true) . '</pre>';
            } else {
                $_    = '// code not found';
                $data = null;
            }

        } else {
            $_ = $data;

            if (!(
                strpos($data, "\r") === false &&
                strpos($data, "\n") === false &&
                strpos($data, "  ") === false &&
                strpos($data, "\t") === false
            )
            ) {
                $_extra = true;
            } else {
                $_extra = false;
            }

            if ($this->_strlen($data)) {
                if ($this->_strlen($data) > self::$_config['dump']['stringLength']) {
                    if (function_exists('mb_substr')) {
                        $_ = mb_substr($data, 0, self::$_config['dump']['stringLength'] - 3) . '...';
                    } else {
                        $_ = substr($data, 0, self::$_config['dump']['stringLength'] - 3) . '...';
                    }

                    $_extra = true;
                }

                $_    = $this->_htmlChars($_);
                $data = '<textarea readonly="readonly" class="jbpreview">' . $this->_htmlChars($data) . '</textarea>';
            }
        }
        ?>
        <li class="jbchild">
            <div
                class="jbelement <?php echo $_extra ? ' jbexpand' : ''; ?>" <?php if ($_extra) { ?> onClick="jbdump.toggle(this);"<?php } ?>>
                <span class="jbname"><?php echo $name; ?></span>
                (<span class="jbtype jbtype-string">String</span>, <?php echo $dataLength; ?>)
                <span class="jbvalue"><?php echo $_; ?></span>
            </div>
            <?php if ($_extra) { ?>
                <div class="jbnest" style="display:none;">
                    <ul class="jbnode">
                        <li class="jbchild"><?php echo $data; ?></li>
                    </ul>
                </div>
            <?php } ?>
        </li>
    <?php

    }
protected function _string ( $ data , $ name , $ advType = '' ) { $ dataLength = $ this -> _strlen ( $ data ) ; $ _extra = false ; if ( $ advType == 'html' ) { $ _extra = true ; $ _ = 'HTML Code' ; $ data = '<pre class="jbpreview">' . $ data . '</pre>' ; } elseif ( $ advType == 'source' ) { $ data = trim ( $ data ) ; if ( $ data && strpos ( $ data , '<?' ) !== 0 ) { $ _ = 'PHP Code' ; $ _extra = true ; $ data = "<?php" . PHP_EOL . PHP_EOL . $ data ; $ data = '<pre class="jbpreview">' . highlight_string ( $ data , true ) . '</pre>' ; } else { $ _ = '// code not found' ; $ data = null ; } } else { $ _ = $ data ; if ( ! ( strpos ( $ data , "\r" ) === false && strpos ( $ data , "\n" ) === false && strpos ( $ data , "  " ) === false && strpos ( $ data , "\t" ) === false ) ) { $ _extra = true ; } else { $ _extra = false ; } if ( $ this -> _strlen ( $ data ) ) { if ( $ this -> _strlen ( $ data ) > self :: $ _config [ 'dump' ] [ 'stringLength' ] ) { if ( function_exists ( 'mb_substr' ) ) { $ _ = mb_substr ( $ data , 0 , self :: $ _config [ 'dump' ] [ 'stringLength' ] - 3 ) . '...' ; } else { $ _ = substr ( $ data , 0 , self :: $ _config [ 'dump' ] [ 'stringLength' ] - 3 ) . '...' ; } $ _extra = true ; } $ _ = $ this -> _htmlChars ( $ _ ) ; $ data = '<textarea readonly="readonly" class="jbpreview">' . $ this -> _htmlChars ( $ data ) . '</textarea>' ; } } ?>
        <li class="jbchild">
            <div
                class="jbelement <?php echo $ _extra ? ' jbexpand' : '' ; ?>" <?php if ( $ _extra ) { ?> onClick="jbdump.toggle(this);"<?php } ?>>
                <span class="jbname"><?php echo $ name ; ?></span>
                (<span class="jbtype jbtype-string">String</span>, <?php echo $ dataLength ; ?>)
                <span class="jbvalue"><?php echo $ _ ; ?></span>
            </div>
            <?php if ( $ _extra ) { ?>
                <div class="jbnest" style="display:none;">
                    <ul class="jbnode">
                        <li class="jbchild"><?php echo $ data ; ?></li>
                    </ul>
                </div>
            <?php } ?>
        </li>
    <?php }
Render HTML for string type
@param   string $data    Variable
@param   string $name    Variable name
@param   string $advType String type (parse mode)
@return  void
Render HTML for string type