rem: HTMLArea.getHTML = function(root, outputRoot, editor){ try{ return HTMLArea.getHTMLWrapper(root,outputRoot,editor); } catch(e){ alert('Your Document is not well formed. Check JavaScript console for details.'); return editor._iframe.contentWindow.document.body.innerHTML; } } 
add: HTMLArea.getHTML = function(root, outputRoot, editor) { var html = ""; switch (root.nodeType) { case 1: case 11: var closed; var i; var root_tag = (root.nodeType == 1) ? root.tagName.toLowerCase() : ''; if (HTMLArea.is_ie && root_tag == "head") { if (outputRoot) html += "<head>";  var save_multiline = RegExp.multiline; RegExp.multiline = true; var txt = root.innerHTML.replace(HTMLArea.RE_tagName, function(str, p1, p2) { return p1 + p2.toLowerCase(); }); RegExp.multiline = save_multiline; html += txt; if (outputRoot) html += "</head>"; break; } else if (outputRoot) { closed = (!(root.hasChildNodes() || HTMLArea.needsClosingTag(root))); html = "<" + root.tagName.toLowerCase(); var attrs = root.attributes; for (i = 0; i < attrs.length; ++i) { var a = attrs.item(i); if (!a.specified) { continue; } var name = a.nodeName.toLowerCase(); if (/_moz_editor_bogus_node/.test(name)) { html = ""; break; } if (/_moz|contenteditable|_msh/.test(name)) {  continue; } var value; if (name != "style") {           if (typeof root[a.nodeName] != "undefined" && name != "href" && name != "src") { value = root[a.nodeName]; } else { value = a.nodeValue;    if (HTMLArea.is_ie && (name == "href" || name == "src")) { value = editor.stripBaseURL(value); } } } else {  value = root.style.cssText; } if (/(_moz|^$)/.test(value)) {   continue; } html += " " + name + '="' + value + '"'; } if (html != "") { html += closed ? " />" : ">"; } } for (i = root.firstChild; i; i = i.nextSibling) { html += HTMLArea.getHTML(i, true, editor); } if (outputRoot && !closed) { html += "</" + root.tagName.toLowerCase() + ">"; } break; case 3:   if ( !root.previousSibling && !root.nextSibling && root.data.match(/^\s*$/i) ) html = '&nbsp;'; else html = /^script|style$/i.test(root.parentNode.tagName) ? root.data : HTMLArea.htmlEncode(root.data); break; case 4:    html = "<![CDATA[" + root.data + "]]>"; break; case 8: html = "<!--" + root.data + "-->"; break; } return html; }; 
context: HTMLArea.getHTML = function(root, outputRoot, editor){    try{        return HTMLArea.getHTMLWrapper(root,outputRoot,editor);    }    catch(e){        alert('Your Document is not well formed. Check JavaScript console for details.');        return editor._iframe.contentWindow.document.body.innerHTML;    }}
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/4d968a51f578e3361a382d6fa8372e519c47ba55/htmlarea.js/clean/phpgwapi/js/htmlarea/htmlarea.js