Merge pull request #5 from szepeviktor/patch-3

htmlspecialchars for single lines
This commit is contained in:
KOLANICH 2015-03-20 15:33:29 +03:00
commit f7d3d26a38

View file

@ -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) {