Don't you have to escape backslashes in regex's? str.replace(/\\r\\n/g, '\n')
~Philip On Mon, Jun 20, 2011 at 9:26 AM, Vito Tafuni <[email protected]> wrote: > simply because don't work! > > \n -> \r\n try on firefox http://jsfiddle.net/Wq3cB/1/ > \r\n -> \n try on opera http://jsfiddle.net/FQv3V/1/ > > may be the browser force that specific format!?! > > -V- > > > > 2011/6/20 verylastminute <[email protected]> > >> Why not string.replace \r\n with \n when the value changes...? > > > -- http://lonestarlightandsound.com/
