aString.ReplaceChar(PRUnichar('\n'),PRUnichar(' '));
nsresult ConsumeQuotedString(PRUnichar aChar,nsString& aString,nsScanner& aScanner){  nsresult result=NS_OK;  switch(aChar) {    case kQuote:      result=aScanner.ReadUntil(aString,kQuote,PR_TRUE);      if(NS_OK==result)        result=aScanner.SkipOver(kQuote);  //this code is here in case someone mistakenly adds multiple quotes...      break;    case kApostrophe:      result=aScanner.ReadUntil(aString,kApostrophe,PR_TRUE);      if(NS_OK==result)        result=aScanner.SkipOver(kApostrophe); //this code is here in case someone mistakenly adds multiple apostrophes...      break;    default:      break;  }  PRUnichar ch=aString.Last();  if(ch!=aChar)    aString+=aChar;  aString.ReplaceChar(PRUnichar('\n'),PRUnichar(' '));  aString.StripChars("\r"); //per the HTML spec, ignore linefeeds...  return result;}