context: function TinyMCE__setHTML(doc, html_content) {	// Weird MSIE bug, <p><hr /></p> breaks runtime?	if (tinyMCE.isMSIE) {		var re = new RegExp('<p><hr /></p>', 'g');		html_content = html_content.replace(re, "<hr>");	}	doc.body.innerHTML = html_content;	// *Content duplication bug fix	if (tinyMCE.isMSIE && 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.toLowerCase() == "p")					node.outerHTML = node.innerHTML;			}		}		// Content duplication bug fix (Seems to be word crap)		var html = doc.body.createTextRange().htmlText;		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.createTextRange().htmlText;			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		doc.body.innerHTML = html;	}}
meta: 1948	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1948/914f29b169169eaf678616905b5062afd73de30a/tiny_mce_src.js/buggy/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js