use wcf\data\language\Language;
use wcf\data\DatabaseObject;
use wcf\data\ILinkableObject;
+use wcf\system\html\input\HtmlInputProcessor;
use wcf\system\html\output\AmpHtmlOutputProcessor;
use wcf\system\html\output\HtmlOutputProcessor;
use wcf\system\language\LanguageFactory;
return StringUtil::encodeHTML($this->teaser);
}
else {
- return StringUtil::truncateHTML(StringUtil::stripHTML($this->getFormattedContent()));
+ $htmlInputProcessor = new HtmlInputProcessor();
+ $htmlInputProcessor->processIntermediate($this->content);
+ return StringUtil::encodeHTML(StringUtil::truncate($htmlInputProcessor->getTextContent(), 500));
}
}