I\'m using a textarea to enable users to input comments. However, if the users enters new lines, the new lines don\'t appear when they are outputted. Is there any way to m
Got my own answer: Using this function from the data from the textarea solves the problem:
function mynl2br($text) { return strtr($text, array("\r\n" => '', "\r" => '', "\n" => '')); }
More here: http://php.net/nl2br