]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/debug/class_DebugErrorLogOutput.php
Added stripTags (default: false) to allow stripping out HTML tags
[core.git] / inc / classes / main / debug / class_DebugErrorLogOutput.php
index 49ab734bf6f21f5454662d93a4b5880a96cb04bd..22fe5598f367ccf81e1f1bfd8f2b26d1c83f6670 100644 (file)
@@ -46,12 +46,13 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, Outpu
        }
 
        /**
-        * Outputs the given data without HTML tags
+        * Outputs the given data without HTML tags, ignores $stripTags
         *
         * @param       $output         The HTML'ed output
+        * @param       $stripTags      Whether HTML tags shall be stripped out
         * @return      void
         */
-       public final function outputStream ($output) {
+       public final function outputStream ($output, $stripTags = false) {
                // Split multiple lines into and array to put them out line-by-line
                $errorLines = explode(chr(10), $output);
 
@@ -71,9 +72,11 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, Outpu
        /**
         * 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);