fucking semicolons
parent
2c2db7de0a
commit
8850bdb745
|
@ -14,7 +14,7 @@ foreach($statement->fetchAll() as $ROW) {
|
||||||
$post_content = htmlspecialchars($ROW['content']);
|
$post_content = htmlspecialchars($ROW['content']);
|
||||||
|
|
||||||
// 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($newlines, "<br />", $post_content);
|
||||||
|
|
||||||
echo "<section>
|
echo "<section>
|
||||||
|
|
Loading…
Reference in New Issue