Avatar

Level 10

You could use a regular expression. For example,

var str = this.rawValue;
this.rawValue = str.replace(/\r|\n/g,"");

will globally replace carriage returns (\r) or line feeds (\n) with "".

Steve