]> git.wh0rd.org Git - tt-rss.git/commitdiff
replace all occurences of double-escaped entities in FeedTree instead of only first one
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 24 Jan 2011 07:05:15 +0000 (10:05 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 24 Jan 2011 07:05:15 +0000 (10:05 +0300)
FeedTree.js

index 06f166c033c456a999b99849f23d32ce76bdd534..c29925c88a0a713e83cb91126d47b0f4a23d973e 100644 (file)
@@ -151,11 +151,11 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
                var name = String(item.name);
 
                /* Horrible */
-               name = name.replace("&quot;", "\"");
-               name = name.replace("&amp;", "&");
-               name = name.replace("&mdash;", "-");
-               name = name.replace("&lt;", "<");
-               name = name.replace("&gt;", ">");
+               name = name.replace(/&quot;/g, "\"");
+               name = name.replace(/&amp;/g, "&");
+               name = name.replace(/&mdash;/g, "-");
+               name = name.replace(/&lt;/g, "<");
+               name = name.replace(/&gt;/g, ">");
 
                if (item.unread > 0) {
                        return name + " (" + item.unread + ")";