add a hack to display several html entities properly in feedlist (closes #279)
This commit is contained in:
parent
35aa08bbc0
commit
cb2c7faab0
13
FeedTree.js
13
FeedTree.js
|
@ -148,10 +148,19 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
||||||
"dijitTreeRow Error";
|
"dijitTreeRow Error";
|
||||||
},
|
},
|
||||||
getLabel: function(item) {
|
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) {
|
if (item.unread > 0) {
|
||||||
return item.name + " (" + item.unread + ")";
|
return name + " (" + item.unread + ")";
|
||||||
} else {
|
} else {
|
||||||
return item.name;
|
return name;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectFeed: function(feed, is_cat) {
|
selectFeed: function(feed, is_cat) {
|
||||||
|
|
Loading…
Reference in New Issue