diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index 5c30eee4a7..d6730f6f0f 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -1613,13 +1613,13 @@ Zotero.Fulltext = new function(){ function _markTroubleChars(text){ - text = text.replace("'", "zoteroapostrophe"); + text = text.replace(/'/g, "zoteroapostrophe"); return text; } function _restoreTroubleChars(text){ - text = text.replace("zoteroapostrophe", "'"); + text = text.replace(/zoteroapostrophe/g, "'"); return text; } }