X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fdebug%2Fclass_DebugConsoleOutput.php;fp=inc%2Fclasses%2Fmain%2Fdebug%2Fclass_DebugConsoleOutput.php;h=16e8dfa80435ad8ec351be442f000f655b5d5706;hp=2c06c1f7ecc81f1733d6ee4e55865c28100b204e;hb=e6fa5aeb4f807fb3d5f3b025faced65ede4140dd;hpb=376f18065add180430bd35fb6d70980211434f24 diff --git a/inc/classes/main/debug/class_DebugConsoleOutput.php b/inc/classes/main/debug/class_DebugConsoleOutput.php index 2c06c1f7..16e8dfa8 100644 --- a/inc/classes/main/debug/class_DebugConsoleOutput.php +++ b/inc/classes/main/debug/class_DebugConsoleOutput.php @@ -49,16 +49,23 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output * Outputs the given data without HTML tags * * @param $output The HTML'ed output + * @param $stripTags Whether HTML tags shall be stripped out * @return void */ - public final function outputStream ($output) { - // Prepare the output - $output = trim(html_entity_decode(strip_tags(stripslashes($output)))); + public final function outputStream ($output, $stripTags = false) { + // Strip HTML tags out? + if ($stripTags === true) { + // Prepare the output without HTML tags + $output = trim(html_entity_decode(strip_tags(stripslashes($output)))); + } else { + // Prepare the output with HTML tags + $output = trim(stripslashes($output)); + } // Are debug times enabled? if ($this->getConfigInstance()->getConfigEntry('debug_output_timings') == 'Y') { // Output it first - print($this->getPrintableExecutionTime()); + $output = $this->getPrintableExecutionTime() . $output; } // END - if // And print it out... @@ -68,12 +75,14 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output /** * Output the code * + * @param $outStream Stream to output + * @param $stripTags Whether HTML tags shall be stripped out * @return void */ - public final function output ($outStream = false) { + public final function output ($outStream = false, $stripTags = false) { // Empty output will be silently ignored if ($outStream !== false) { - $this->outputStream($outStream); + $this->outputStream($outStream, $stripTags); } // END - if }