From e509d35a8140b774dea1adc9080205863d6d9056 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 31 May 2011 20:24:13 +0000 Subject: [PATCH] Fixes #1822, Dragging notes that contain HTML entities sends HTML as text --- chrome/content/zotero/xpcom/quickCopy.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js index 7ad55bc7d..c7ed0728e 100644 --- a/chrome/content/zotero/xpcom/quickCopy.js +++ b/chrome/content/zotero/xpcom/quickCopy.js @@ -199,7 +199,12 @@ Zotero.QuickCopy = new function() { for (var i=0; i' + noteContent + ''); + var noteDiv = new XML('
' + + noteContent + //   is the only HTML entity we allow in + // notes, and it's not valid XML + .replace(' ', ' ') + + '
'); } catch (e) { Zotero.debug(e);