NL2BR в jQuery
var valNew = valNew.replace(/\n/g,"<br>");
Shy Sandpiper
var valNew = valNew.replace(/\n/g,"<br>");