From 2b9648ffc9970d15d2019a561336def3c52e1210 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 8 Feb 2024 16:17:37 +0100 Subject: also quote variable names $foo->bar for valid html output --- it_debug.class | 1 + 1 file changed, 1 insertion(+) diff --git a/it_debug.class b/it_debug.class index 1c95acf..b929f9c 100644 --- a/it_debug.class +++ b/it_debug.class @@ -197,6 +197,7 @@ static function dump($args, $p = []) $r .= "$item "; else { + $var = $p['html'] ? strtr($var, $htmlspecialchars) : $var; $var = $p['short'] ? "" : "$blue$var=$noblue"; $r .= $previtem && preg_match("/\n/", $item . $previtem) ? "\n$var$item " : "$var$item "; $previtem = $item; -- cgit v1.2.3