Your Ad Here

Sunday, June 29, 2008

Javascript Replace new Lines

var varNotes = varNotes.replace(
// Replace out the new line character.
new RegExp( “\\n“, “g” ),

// Put in … so we can see a visual representation of where
// the new line characters were replaced out.
“<br>”
);

No comments:

Your Ad Here
#chitikatest=doctor