Have you ever experienced that Sitecore keeps popping the “Do you want to save the changes to the item?” dialog box, even when you have made no changes to the item? And the box keeps appearing, even when you have chosen “yes”?

Save Dialog
This scenario can occur if the contents of any multiline field or textbox field contains new lines \n or carriage returns \r.

Memo Box with \r or \n
In rare situations, the browser will interprete \n and \r differently from Sitecore, thus telling Sitecore that the contents in the box differs from the contents in the Sitecore database.
The situation rarely occurs with manually entered text, but if you have programatically added the text to the box, the \n and \r might misalign.
So if you add text to the multiline field (or textbox field) you should ensure that any \n and \r are removed before adding the text.
I made this string extension method to remove all new lines, carriage returns, tabs and strange \xA0′s (which looks like a space but isn’t):
public static string CleanNewLinesTabsAndOtherStuff(this string s)
{
return s.Replace("\r\n", " ").Replace("\r", " ").Replace("\n", " ").Replace("\t", " ").Replace('\xA0', '\x20');
}
I replace all of them with spaces, but in other situations you could replace them with string.Empty.

Awesome, I have been wondering what causes this for a very long time!
Pingback: Seek and Destroy: Root Out Newlines and Carriage Returns in Multi-Line Text Fields « SitecoreJunkie.com
Cool investigation! It would be better if the logic under the “Save” was fixed instead. Unsure if sitecore is working / has worked on this issue.
Do you have a pipeline action on the ‘Save’ to fix all the MultiLine fields?
No, but the Sitecore Junkie has:
http://sitecorejunkie.com/2012/12/02/seek-and-destroy-root-out-newlines-and-carriage-returns-in-multi-line-text-fields/