From f0c8ab294f56f5eccaa57e58fc2b086f3fa71736 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 21 Nov 2018 09:47:21 +0100 Subject: [PATCH] nieuws: blockquote containers around replies Wrap multiple paragraphs and other elements such as lists. --- nieuws/replies.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nieuws/replies.php b/nieuws/replies.php index a6d9740..61ccc25 100644 --- a/nieuws/replies.php +++ b/nieuws/replies.php @@ -9,6 +9,7 @@ if ($_POST) { @mkdir($pagelink); $target = $pagelink.'/'.date('YmdHis').':'.$User['name'].'.html'; $html = nl2br(htmlspecialchars($_POST['reply'])); + $html = "

$html

\n"; $written = file_put_contents($target, $html); if ($written === FALSE) { throw new Exception('Fout bij opslaan'); @@ -31,7 +32,7 @@ foreach (glob("$pagelink/*.html") as $reply) { printf('%s %s', $replymeta[2], showdate($replydate) ); - printf("

%s

\n", file_get_contents($reply)); + printf("
%s
\n", file_get_contents($reply)); print "\n"; } -- 2.30.0