* @property-read string $message
* @property-read integer $time
* @property-read integer $attachments
- * @property-read integer $enableSmilies
* @property-read integer $enableHtml
- * @property-read integer $enableBBCodes
- * @property-read integer $showSignature
* @property-read string $ipAddress
* @property-read integer $lastEditTime
* @property-read integer $editCount
* @return string
*/
public function getSimplifiedFormattedMessage() {
- MessageParser::getInstance()->setOutputType('text/simplified-html');
- return MessageParser::getInstance()->parse($this->message, $this->enableSmilies, $this->enableHtml, $this->enableBBCodes);
+ $processor = new HtmlOutputProcessor();
+ $processor->setOutputType('text/simplified-html');
+ $processor->process($this->message, 'com.woltlab.wcf.conversation.message', $this->messageID);
+
+ return $processor->getHtml();
}
/**
* @return string
*/
public function getMailText() {
- MessageParser::getInstance()->setOutputType('text/simplified-html');
- $message = MessageParser::getInstance()->parse($this->message, $this->enableSmilies, $this->enableHtml, $this->enableBBCodes);
-
- return MessageParser::getInstance()->stripHTML($message);
+ return MessageParser::getInstance()->stripHTML($this->getSimplifiedFormattedMessage());
}
/**