From 906fc5b7a16078a119347810047c0295d598f63e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 24 Jan 2011 10:05:15 +0300 Subject: [PATCH] replace all occurences of double-escaped entities in FeedTree instead of only first one --- FeedTree.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 + ")"; -- 2.39.5