1because each OS have different ASCII chars for linebreak:
2windows = \r\n
3unix = \n
4mac = \r
5
6<?php
7echo nl2br("foo isn't\n bar");
8?>
1// add to the functions file
2function translateLineBreaks($string) {
3 $result = nl2br ($string);
4 return $result;
5}