use wcf\data\language\Language;
use wcf\data\DatabaseObject;
use wcf\data\ILinkableObject;
+use wcf\system\html\output\AmpHtmlOutputProcessor;
use wcf\system\html\output\HtmlOutputProcessor;
use wcf\system\language\LanguageFactory;
use wcf\system\request\IRouteController;
return $processor->getHtml();
}
+ /**
+ * Returns the article's formatted content ready for use with Google AMP pages.
+ *
+ * @return string
+ */
+ public function getAmpFormattedContent() {
+ $processor = new AmpHtmlOutputProcessor();
+ $processor->process($this->content, 'com.woltlab.wcf.article.content', $this->articleContentID);
+
+ return $processor->getHtml();
+ }
+
/**
* Returns article object.
*