Fixes #1822, Dragging notes that contain HTML entities sends HTML as text
This commit is contained in:
parent
8f65c52f6c
commit
e509d35a81
1 changed files with 6 additions and 1 deletions
|
@ -199,7 +199,12 @@ Zotero.QuickCopy = new function() {
|
|||
for (var i=0; i<notes.length; i++) {
|
||||
var noteContent = notes[i].getNote();
|
||||
try {
|
||||
var noteDiv = new XML('<div class="zotero-note">' + noteContent + '</div>');
|
||||
var noteDiv = new XML('<div class="zotero-note">'
|
||||
+ noteContent
|
||||
// is the only HTML entity we allow in
|
||||
// notes, and it's not valid XML
|
||||
.replace(' ', ' ')
|
||||
+ '</div>');
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.debug(e);
|
||||
|
|
Loading…
Add table
Reference in a new issue