rem: if (/^<body[^>]*>(<\/?(p|br)[^>]*>|\&nbsp;)*<\/body>$/.test(contents)) { 
add: if (/^<body[^>]*>(<\/?(p|br)[^>]*>|\&nbsp;|\s)*<\/body>$/.test(contents)) { 
context: KupuEditor.prototype.saveDataToField = function(form, field) {    var sourcetool = this.getTool('sourceedittool');    if (sourcetool) {sourcetool.cancelSourceMode();};    if (!this._initialized) {        return;    };    this._initialized = false;    // set the window status so people can see we're actually saving    window.status= "Please wait while saving document...";    // pass the content through the filters    this.logMessage("Starting HTML cleanup");    var transform = this._filterContent(this.getInnerDocument().documentElement);    // We need to get the contents of the body node as xml, but we don't    // want the body node itself, so we use a regex to remove it    var contents = this.getXMLBody(transform);    if (/^<body[^>]*>(<\/?(p|br)[^>]*>|\&nbsp;)*<\/body>$/.test(contents)) {        contents = ''; /* Ignore nearly empty contents */    }    var base = this._getBase(transform);    contents = this._fixupSingletons(contents);    contents = this.makeLinksRelative(contents, base).replace(/<\/?body[^>]*>/g, "");    this.logMessage("Cleanup done, sending document to server");    // now create the form input    field.value = contents;    this.content_changed = false;};
meta: 2380	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2380/e8e6f76734c34c8cbc3eafec62b2d41859fbf066/kupuploneeditor.js/buggy/kupu/plone/kupu_plone_layer/kupuploneeditor.js