how we but <br> in the string php code example
Example 1: php replace \n by
$var = str_replace(array("\r\n","\n"),'<br>', $var);
Example 2: nl2br() php
// add to the functions file
function translateLineBreaks($string) {
$result = nl2br ($string);
return $result;
}