rem: var sEditorContent = fixHTML(editor.getHTML()) ; sEditorContent = sEditorContent.replace(/^\s+/, "") ; sEditorContent = sEditorContent.replace(/\s+$/, "") ; sEditorContent = sEditorContent.replace(/^(<(BR|P) \/>)+/i, "") ; sEditorContent = sEditorContent.replace(/(<(BR|P) \/>)+$/i, "") ; sEditorContent = sEditorContent.replace(/^<P>/i, "") ; sEditorContent = sEditorContent.replace(/<\/P>$/i, "") ; editor._textArea.value = sEditorContent ; 
add: editor._textArea.value = fixHTML(editor.getHTML()) ; 
context: 		f.onsubmit = function() {			if (textarea.style.display == "none") {				var sEditorContent = fixHTML(editor.getHTML()) ;				sEditorContent = sEditorContent.replace(/^\s+/, "") ;				sEditorContent = sEditorContent.replace(/\s+$/, "") ;				sEditorContent = sEditorContent.replace(/^(<(BR|P) \/>)+/i, "") ;				sEditorContent = sEditorContent.replace(/(<(BR|P) \/>)+$/i, "") ;				sEditorContent = sEditorContent.replace(/^<P>/i, "") ;				sEditorContent = sEditorContent.replace(/<\/P>$/i, "") ;				editor._textArea.value = sEditorContent ;				var a = this.__msh_prevOnSubmit;				// call previous submit methods if they were there.				if (typeof a != "undefined") {					for (var i in a) {						a[i]();					}				}			}		};
meta: 6464	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6464/1c38bef2d8301822ad1039868f1ed85b1216f13e/htmlarea.js/buggy/web/imcms/htmlarea/htmlarea.js