replace all occurences of double-escaped entities in FeedTree instead of only first one
This commit is contained in:
parent
172c86bae1
commit
906fc5b7a1
10
FeedTree.js
10
FeedTree.js
|
@ -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("<", "<");
|
name = name.replace(/</g, "<");
|
||||||
name = name.replace(">", ">");
|
name = name.replace(/>/g, ">");
|
||||||
|
|
||||||
if (item.unread > 0) {
|
if (item.unread > 0) {
|
||||||
return name + " (" + item.unread + ")";
|
return name + " (" + item.unread + ")";
|
||||||
|
|
Loading…
Reference in New Issue