use wcf\system\request\IRouteController;
use wcf\system\request\LinkHandler;
use wcf\system\WCF;
+use wcf\util\MessageUtil;
use wcf\util\StringUtil;
/**
return \nl2br(StringUtil::encodeHTML($this->teaser), false);
} else {
$htmlOutputProcessor = new HtmlOutputProcessor();
- $htmlOutputProcessor->setOutputType('text/plain');
+ $htmlOutputProcessor->setOutputType('text/simplified-html');
$htmlOutputProcessor->enableUgc = false;
$htmlOutputProcessor->process(
$this->content,
$this->languageID
);
- return \nl2br(StringUtil::encodeHTML(StringUtil::truncate($htmlOutputProcessor->getHtml(), 500)), false);
+ return MessageUtil::truncateFormattedMessage($htmlOutputProcessor->getHtml(), 500);
}
}