You might want to use `Zotero.Utilities.unescapeHTML()`, which unescapes the note using the HTML parser, instead of this regexp.