var name = String(item.name);
/* Horrible */
- name = name.replace(""", "\"");
- name = name.replace("&", "&");
- name = name.replace("—", "-");
- name = name.replace("<", "<");
- name = name.replace(">", ">");
+ name = name.replace(/"/g, "\"");
+ name = name.replace(/&/g, "&");
+ name = name.replace(/—/g, "-");
+ name = name.replace(/</g, "<");
+ name = name.replace(/>/g, ">");
if (item.unread > 0) {
return name + " (" + item.unread + ")";