diff --git a/FeedTree.js b/FeedTree.js index f7d273f0b..26629e8ce 100644 --- a/FeedTree.js +++ b/FeedTree.js @@ -148,10 +148,19 @@ dojo.declare("fox.FeedTree", dijit.Tree, { "dijitTreeRow Error"; }, getLabel: function(item) { + var name = String(item.name); + + /* Horrible */ + name = name.replace(""", "\""); + name = name.replace("&", "&"); + name = name.replace("—", "-"); + name = name.replace("<", "<"); + name = name.replace(">", ">"); + if (item.unread > 0) { - return item.name + " (" + item.unread + ")"; + return name + " (" + item.unread + ")"; } else { - return item.name; + return name; } }, selectFeed: function(feed, is_cat) {