diff --git a/lib/editor/htmlarea/htmlarea.php b/lib/editor/htmlarea/htmlarea.php
index 921c33914b4..d91c05bbeb1 100644
--- a/lib/editor/htmlarea/htmlarea.php
+++ b/lib/editor/htmlarea/htmlarea.php
@@ -875,7 +875,11 @@ HTMLArea.prototype.setMode = function(mode) {
this._iframe.style.display = "none";
this._textArea.style.display = "block";
if (this.config.statusBar) {
- this._statusBar.innerHTML = HTMLArea.I18N.msg["TEXT_MODE"];
+ while(this._statusBar.childNodes.length>0) {
+ this._statusBar.removeChild(this._statusBar.childNodes[0]);
+ }
+
+ this._statusBar.appendChild(document.createTextNode(HTMLArea.I18N.msg["TEXT_MODE"]));
}
break;
case "wysiwyg":