From f2a440185b4513de25cbe430b6c471bd324e986d Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Mon, 28 Jun 2021 15:56:09 +0300 Subject: [PATCH] Filter i, b, sub, sup tags from annotation comment when exporting to PDF --- chrome/content/zotero/xpcom/pdfWorker/manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/pdfWorker/manager.js b/chrome/content/zotero/xpcom/pdfWorker/manager.js index c0578208fa..787dcf2a0c 100644 --- a/chrome/content/zotero/xpcom/pdfWorker/manager.js +++ b/chrome/content/zotero/xpcom/pdfWorker/manager.js @@ -158,7 +158,7 @@ class PDFWorker { id: item.key, type: item.annotationType, authorName: Zotero.Users.getName(item.createdByUserID) || Zotero.Users.getCurrentUsername() || '', - comment: item.annotationComment || '', + comment: (item.annotationComment || '').replace(/<\/?(i|b|sub|sup)>/g, ''), color: item.annotationColor, position: JSON.parse(item.annotationPosition), dateModified: item.dateModified