From b597d668aff950e16327cf9b36b2eeb222766220 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 13 Aug 2005 18:39:43 +0000 Subject: [PATCH] Added debugging check info --- dev/conditionaltest.php | 72 +++++++++++++++++++++++++++++++---------- 1 file changed, 55 insertions(+), 17 deletions(-) diff --git a/dev/conditionaltest.php b/dev/conditionaltest.php index 3615e35..27e31fb 100644 --- a/dev/conditionaltest.php +++ b/dev/conditionaltest.php @@ -19,29 +19,28 @@ $isso->load('template'); // ################################################################### -$data = ' - +$data = ' - - + 1 + 2 Remove Item - + 2.1 Edit Item Received Item - - - - + /2 + 1.1 + 3 + 4 Purchase Item - - + /4 + 5 Un-purchase Item - - + /5 + 3.1 ($iteminfo[email]) - - + /3 + /1 $iteminfo[name]$iteminfo[name] @@ -54,11 +53,50 @@ $data = ' // ################################################################### -$parsed = $template->_parse($data); +$data2 = '1 -0 + 2 -1 + moo + 2.1 -1 + boo + 3 -2 + dad + 3.1 -2 + ghost + /3 -2 + /2 -1 +1.1 -0 + hi there + 4 -1 + mom + 4.1 -1 + 5 -2 + moo + 5.1 -2 + adfds + /5 -2 + /4 -1 +/1 -0'; + +// ################################################################### + +$data3 = 'hey there +this is a test + +hi + +booo + +moo +moo +moo'; + +// ################################################################### + +$parsed = $template->_parse($data2); echo '
';
 
-echo '$test = "' . htmlspecialchars($parsed) . '";';
+echo highlight_string('$test = "' . $parsed . '";', true);
 
 echo '
'; -- 2.43.5