Filter i, b, sub, sup tags from annotation comment when exporting to PDF

This commit is contained in:
Martynas Bagdonas 2021-06-28 15:56:09 +03:00
parent fdcd4e51c5
commit f2a440185b

View file

@ -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