Fixed HTML issues in simplified output
authorMarcel Werk <burntime@woltlab.com>
Wed, 31 Jul 2013 11:05:40 +0000 (13:05 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 31 Jul 2013 11:05:40 +0000 (13:05 +0200)
wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php

index 78d1ae71b71006b60dd02098e72c8e13792eb325..f6c4c110a5e8e561955fa5e9d092510d54aa83a5 100644 (file)
@@ -101,6 +101,11 @@ class MessageParser extends BBCodeParser {
                                $this->message = nl2br($this->message);
                        }
                }
+               else {
+                       if ($this->getOutputType() == 'text/simplified-html') {
+                               $this->message = StringUtil::stripHTML($this->message);
+                       }
+               }
                
                // parse bbcodes
                if ($enableBBCodes) {