nl2br dans jQuery

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