nl2br() php
snippet in php

nl2br() php

user1588

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