dis work?
parent
8850bdb745
commit
f195d33b48
|
@ -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)
|
// 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
|
$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>
|
echo "<section>
|
||||||
<h1>$post_title</h1>
|
<h1>$post_title</h1>
|
||||||
|
|
Loading…
Reference in New Issue