EOL-Zeichen in Erklärtextdateien auch im HTML berücksichtigt
This commit is contained in:
@@ -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", "<br>", $a);
|
||||
$a = str_replace("\r", "<br>", $a);
|
||||
$a = str_replace("\n", "<br>", $a);
|
||||
|
||||
return $a;
|
||||
}
|
||||
|
||||
public function getArticle(): string
|
||||
|
||||
Reference in New Issue
Block a user