diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index 585d52ca7..041f5a65c 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -231,10 +231,9 @@ output = output.replace(entry[0], entry[1], "g"); } - output = Zotero.Utilities.unescapeHTML( - output.replace(" ", " ", "g")) - .replace(highcharRe, - function(aChar) { return "\\uc0\\u"+aChar.charCodeAt(0).toString()+"{}" }); + output = Zotero.Utilities.unescapeHTML(output.replace(" ", " ", "g")) + .replace("\u00A0", " ", "g") + .replace(highcharRe, function(aChar) { return "\\uc0\\u"+aChar.charCodeAt(0).toString()+"{}" }); output = Zotero.Utilities.trim(output); }