dis work?

master
BodgeMaster 2021-09-02 05:49:46 +02:00
parent 8850bdb745
commit f195d33b48
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ foreach($statement->fetchAll() as $ROW) {
// add line breaks to post content, to be replaced with proper makrdown support in the future (see #44)
$newlines = array("\r\n", "\n\r", "\r", "\n"); // two-character newlines first to prevent placing two line breaks instead of one
str_replace($newlines, "<br />", $post_content);
str_replace("\n", "<br />", $post_content);
echo "<section>
<h1>$post_title</h1>