Fixes #1822, Dragging notes that contain HTML entities sends HTML as text
This commit is contained in:
parent
8f65c52f6c
commit
e509d35a81
|
@ -199,7 +199,12 @@ Zotero.QuickCopy = new function() {
|
||||||
for (var i=0; i<notes.length; i++) {
|
for (var i=0; i<notes.length; i++) {
|
||||||
var noteContent = notes[i].getNote();
|
var noteContent = notes[i].getNote();
|
||||||
try {
|
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) {
|
catch (e) {
|
||||||
Zotero.debug(e);
|
Zotero.debug(e);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user