rem: var html = doc.body.innerHTML; /* if (html.indexOf('="mso') != -1) { for (var i=0; i<doc.body.all.length; i++) { var el = doc.body.all[i]; el.removeAttribute("className","",0); el.removeAttribute("style","",0); }  html = doc.body.innerHTML; html = tinyMCE.regexpReplace(html, "<o:p><\/o:p>", "<br />"); html = tinyMCE.regexpReplace(html, "<o:p>&nbsp;<\/o:p>", ""); html = tinyMCE.regexpReplace(html, "<st1:.*?>", ""); html = tinyMCE.regexpReplace(html, "<p><\/p>", ""); html = tinyMCE.regexpReplace(html, "<p><\/p>\r\n<p><\/p>", ""); html = tinyMCE.regexpReplace(html, "<p>&nbsp;<\/p>", "<br />"); html = tinyMCE.regexpReplace(html, "<p>\s*(<p>\s*)?", "<p>"); html = tinyMCE.regexpReplace(html, "<\/p>\s*(<\/p>\s*)?", "</p>"); }*/ 
add: html = doc.body.innerHTML; 
context: 	_setHTML : function(doc, html_content) {		// Force closed anchors open		//html_content = html_content.replace(new RegExp('<a(.*?)/>', 'gi'), '<a$1></a>');		html_content = tinyMCE.cleanupHTMLCode(html_content);		// Try innerHTML if it fails use pasteHTML in MSIE		try {			tinyMCE.setInnerHTML(doc.body, html_content);		} catch (e) {			if (this.isMSIE)				doc.body.createTextRange().pasteHTML(html_content);		}		// Content duplication bug fix		if (tinyMCE.isIE && tinyMCE.settings['fix_content_duplication']) {			// Remove P elements in P elements			var paras = doc.getElementsByTagName("P");			for (var i=0; i<paras.length; i++) {				var node = paras[i];				while ((node = node.parentNode) != null) {					if (node.nodeName == "P")						node.outerHTML = node.innerHTML;				}			}			// Content duplication bug fix (Seems to be word crap)			var html = doc.body.innerHTML;/*			if (html.indexOf('="mso') != -1) {				for (var i=0; i<doc.body.all.length; i++) {					var el = doc.body.all[i];					el.removeAttribute("className","",0);					el.removeAttribute("style","",0);				}				html = doc.body.innerHTML;				html = tinyMCE.regexpReplace(html, "<o:p><\/o:p>", "<br />");				html = tinyMCE.regexpReplace(html, "<o:p>&nbsp;<\/o:p>", "");				html = tinyMCE.regexpReplace(html, "<st1:.*?>", "");				html = tinyMCE.regexpReplace(html, "<p><\/p>", "");				html = tinyMCE.regexpReplace(html, "<p><\/p>\r\n<p><\/p>", "");				html = tinyMCE.regexpReplace(html, "<p>&nbsp;<\/p>", "<br />");				html = tinyMCE.regexpReplace(html, "<p>\s*(<p>\s*)?", "<p>");				html = tinyMCE.regexpReplace(html, "<\/p>\s*(<\/p>\s*)?", "</p>");			}*/			// Always set the htmlText output			tinyMCE.setInnerHTML(doc.body, html);		}		tinyMCE.cleanupAnchors(doc);		if (tinyMCE.getParam("convert_fonts_to_spans"))			tinyMCE.convertSpansToFonts(doc);	},
meta: 3891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3891/e8e3862e104280a24076077196c7b5713720de70/tiny_mce_src.js/buggy/plugins/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js