// add to the functions file function translateLineBreaks($string) { $result = nl2br ($string); return $result; }