diff --git a/webseite/classes/TopicData.php b/webseite/classes/TopicData.php
index ba32690..fd3de5f 100644
--- a/webseite/classes/TopicData.php
+++ b/webseite/classes/TopicData.php
@@ -513,7 +513,12 @@ class TopicData
*/
public function getFinishedArticle(): string
{
- return str_replace('$TOPICPATH', Config::getTopicDirectory($this->subjectId, $this->id) . "images", $this->article);
+ $a = str_replace('$TOPICPATH', Config::getTopicDirectory($this->subjectId, $this->id) . "images", $this->article);
+ $a = str_replace("\r\n", "
", $a);
+ $a = str_replace("\r", "
", $a);
+ $a = str_replace("\n", "
", $a);
+
+ return $a;
}
public function getArticle(): string