diff --git a/build/MDEditor.min.js b/build/MDEditor.min.js index dc2437c..39ad0e3 100644 --- a/build/MDEditor.min.js +++ b/build/MDEditor.min.js @@ -891,7 +891,7 @@ MDEditor.prototype.load = function() { var self = this, box = self.obj[0], index = 0; if (box) { - if (box.innerHTML !== "") self.opts.value = box.innerHTML.replace(/\>\;/g, ">").replace(/\<\;/g, ">"), + if (box.innerHTML !== "") self.opts.value = box.innerHTML.replace(/\>\;/g, ">").replace(/\<\;/g, "<"), box.innerHTML = ""; box.appendChild(self.preview), box.appendChild(self.tools), box.appendChild(self.textarea); } diff --git a/lib/MDEditor.js b/lib/MDEditor.js index 6a35648..69bd4ad 100644 --- a/lib/MDEditor.js +++ b/lib/MDEditor.js @@ -147,7 +147,7 @@ if(box.innerHTML!=="") self.opts.value = box.innerHTML .replace(/\>\;/g,'>') - .replace(/\<\;/g,'>'), + .replace(/\<\;/g,'<'), box.innerHTML=''; box.appendChild(self.preview), box.appendChild(self.tools),