i am currently using
$comment = htmlspecialchars($_POST['comment']);
$comm = '<p>'.preg_replace('/[\r\n]+/', "</p><p>", htmlentities($comment)).'</p>';
this turns all new lines into a paragraph, but it affects ALL new lines, what I would like to change it to is so it doenst affect a single new line, but will affect 2 or more
so...
line 1
line 2
line 5
turns into
line 1
line 2
line 5
currently it tuns into
line 1
line 2
line 5