diff --git a/FeedTree.js b/FeedTree.js index 06f166c03..c29925c88 100644 --- a/FeedTree.js +++ b/FeedTree.js @@ -151,11 +151,11 @@ dojo.declare("fox.FeedTree", dijit.Tree, { 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 + ")";