Newlines have no meaning in rendered HTML. To break to the next line you use <br>
or <br />
so use:
echo nl2br($comment);
Or in cases where there is no newline:
echo "$comment<br />";
Newlines have no meaning in rendered HTML. To break to the next line you use <br>
or <br />
so use:
echo nl2br($comment);
Or in cases where there is no newline:
echo "$comment<br />";