replace all occurences of double-escaped entities in FeedTree instead of only first one

master
Andrew Dolgov 14 years ago
parent 172c86bae1
commit 906fc5b7a1

@ -151,11 +151,11 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
var name = String(item.name); var name = String(item.name);
/* Horrible */ /* Horrible */
name = name.replace(""", "\""); name = name.replace(/"/g, "\"");
name = name.replace("&", "&"); name = name.replace(/&/g, "&");
name = name.replace("—", "-"); name = name.replace(/—/g, "-");
name = name.replace("&lt;", "<"); name = name.replace(/&lt;/g, "<");
name = name.replace("&gt;", ">"); name = name.replace(/&gt;/g, ">");
if (item.unread > 0) { if (item.unread > 0) {
return name + " (" + item.unread + ")"; return name + " (" + item.unread + ")";

Loading…
Cancel
Save