Added stripTags (default: false) to allow stripping out HTML tags
[core.git] / inc / classes / middleware / debug / class_DebugMiddleware.php
index c5f49f5eb0721f45191de4230575f35ef438fcf1..811ca5f66c4ee6e3d1b218a13168f4e40207e1a7 100644 (file)
@@ -104,9 +104,10 @@ class DebugMiddleware extends BaseMiddleware implements Registerable {
         * output instance.
         *
         * @param       $outStream      Data we shall 'stream' out to the world
+        * @param       $stripTags      Whether HTML tags shall be stripped out
         * @return      void
         */
-       public final function output ($outStream) {
+       public final function output ($outStream, $stripTags = false) {
                // Is the output stream set
                if (empty($outStream)) {
                        // @TODO Initialization phase
@@ -114,7 +115,7 @@ class DebugMiddleware extends BaseMiddleware implements Registerable {
                } // END - if
 
                // Use the output instance
-               $this->outputInstance->outputStream($outStream);
+               $this->outputInstance->outputStream($outStream, $stripTags);
        }
 }