From 6d0067b806a67dbba75295c7be515a6d8c6e36c2 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Fri, 4 Jun 2021 11:40:47 +0300 Subject: [PATCH] Do not escape existing HTML entities when citing note --- chrome/content/zotero/xpcom/integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index c9db25acee..daf15df509 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1550,7 +1550,7 @@ Zotero.Integration.Session.prototype._processNote = async function (item) { } } // Encode unicode chars - text = text.replace(/[\u00A0-\u9999\&]/gim, function (i) { + text = text.replace(/[\u00A0-\u9999]/gim, function (i) { return '&#'+i.charCodeAt(0)+';'; }); if (!text.startsWith('')) {