}
/**
- * Outputs the given data directly
+ * Outputs the given data directly, ignores $stripTags
*
* @param $output The HTML output
+ * @param $stripTags Whether HTML tags shall be stripped out
* @return void
*/
- public final function outputStream ($output) {
+ public final function outputStream ($output, $stripTags = false) {
// Strip out <br />
$output = str_replace("<br />", '', $output);
print(stripslashes($output)."<br />\n");
/**
* 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
}
/**