From: Mischa POSLAWSKY Date: Wed, 21 Nov 2018 08:47:21 +0000 (+0100) Subject: nieuws: blockquote containers around replies X-Git-Tag: v3.8~4 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/f0c8ab294f56f5eccaa57e58fc2b086f3fa71736 nieuws: blockquote containers around replies Wrap multiple paragraphs and other elements such as lists. --- 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"; }