Merge pull request #5 from szepeviktor/patch-3
htmlspecialchars for single lines
This commit is contained in:
commit
f7d3d26a38
1 changed files with 1 additions and 1 deletions
2
dBug.php
2
dBug.php
|
@ -256,7 +256,7 @@ class dBug
|
|||
$lines=preg_split('/\R/u', $nv);
|
||||
$linesCount=count($lines);
|
||||
if ($linesCount==1 && $length<=static::$embeddedStringMaxLength) {
|
||||
$this->renderPrimitiveType('string', 'string ['.$length.']', $var);
|
||||
$this->renderPrimitiveType('string', 'string ['.$length.']', $nv);
|
||||
} else {
|
||||
$this->makeTableHeader('string', 'string ('.$length.' chars @ '.$linesCount.' lines)');
|
||||
foreach ($lines as $num=>$line) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue