rem: text = text.replace(/<p>(<hr.*?>)<\/p>/,'$1'); 
add: text = text.replace(/<p>(<hr.*?>)<\/p>/g,'$1'); 
context:     this.setHTMLBody = function(text) {        var bodies = this.getInnerDocument().documentElement.getElementsByTagName('body');        for (var i = 0; i < bodies.length-1; i++) {            bodies[i].parentNode.removeChild(bodies[i]);        }        if (!_SARISSA_IS_IE) { /* Mozilla doesn't understand strong/em */            var fixups = { 'strong':'b', 'em':'i' };            text = text.replace(/<(\/?)(strong|em)>/gi, function(all,close,tag) {                tag = fixups[tag.toLowerCase()];                return '<'+close+tag+'>';            });        };        text = text.replace(/<p>(<hr.*?>)<\/p>/,'$1');        bodies[bodies.length-1].innerHTML = text;    };
meta: 2380	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2380/37c69c07a0669d4d457c8fcc354a69495bc411b9/kupueditor.js/clean/kupu/common/kupueditor.js