diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 011965f3e2..e63fc5c79b 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -7497,7 +7497,7 @@ CSL.Output.Formats.prototype.text = { }; CSL.Output.Formats.prototype.rtf = { "text_escape": function (text) { - return text.replace("\\", "\\\\", "g").replace(/[\x7F-\uFFFF]/g, + return text.replace(/\\/, "\\\\", "g").replace(/[\x7F-\uFFFF]/g, function(aChar) { return "\\uc0\\u"+aChar.charCodeAt(0).toString()+"{}" }) .replace("\t", "\\tab{}", "g"); },