From b082670a74a214cc9bb879c8d350f8e5f7abca8a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sun, 5 Jul 2015 04:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A0=87=E7=AD=BE=E8=BD=AC?= =?UTF-8?q?=E4=B9=89=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/MDEditor.min.js | 2 +- lib/MDEditor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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),