- $target = $pagelink.'/'.date('YmdHis').':'.$User['name'].'.txt';
- $written = file_put_contents($target, $_POST['reply']);
+ $target = $pagelink.'/'.date('YmdHis').':'.$User->login.'.html';
+ $html = nl2br(htmlspecialchars($_POST['reply']));
+ $html = "<p>$html</p>\n";
+ $written = file_put_contents($target, $html);