diff --git a/translators/BibTeX.js b/translators/BibTeX.js index a27ff5adc0..b0e4c090b3 100644 --- a/translators/BibTeX.js +++ b/translators/BibTeX.js @@ -10,7 +10,7 @@ "configOptions":{"dataMode":"block"}, "displayOptions":{"exportCharset":"UTF-8", "exportFileData":false}, "inRepository":true, - "lastUpdated":"2011-05-12 21:20:00" + "lastUpdated":"2011-05-27 19:35:42" } function detectImport() { @@ -1632,7 +1632,7 @@ function processField(item, field, value) { item.tags = value.split(/, ?/g); } } else if (field == "comment" || field == "annote" || field == "review") { - item.notes.push({note:value}); + item.notes.push({note:Zotero.Utilities.text2html(value)}); } else if (field == "pdf") { if (/:\/\//.test(value)) { // a full uri is given item.attachments = [{url:value, mimeType:"application/pdf", downloadable:true}]; @@ -2076,7 +2076,7 @@ function doExport() { } if (item.notes) { for each (var note in item.notes) { - writeField("annote", note["note"]); + writeField("annote", Zotero.Utilities.unescapeHTML(note["note"])); } }