From: Andrew Dolgov Date: Mon, 24 Jan 2011 07:05:15 +0000 (+0300) Subject: replace all occurences of double-escaped entities in FeedTree instead of only first one X-Git-Tag: 1.5.2~51 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=906fc5b7a16078a119347810047c0295d598f63e;p=tt-rss.git replace all occurences of double-escaped entities in FeedTree instead of only first one --- diff --git a/FeedTree.js b/FeedTree.js index 06f166c0..c29925c8 100644 --- a/FeedTree.js +++ b/FeedTree.js @@ -151,11 +151,11 @@ dojo.declare("fox.FeedTree", dijit.Tree, { var name = String(item.name); /* Horrible */ - name = name.replace(""", "\""); - name = name.replace("&", "&"); - name = name.replace("—", "-"); - name = name.replace("<", "<"); - name = name.replace(">", ">"); + name = name.replace(/"/g, "\""); + name = name.replace(/&/g, "&"); + name = name.replace(/—/g, "-"); + name = name.replace(/</g, "<"); + name = name.replace(/>/g, ">"); if (item.unread > 0) { return name + " (" + item.unread + ")";