diff --git a/util.js b/util.js index a99e981..4f4a061 100644 --- a/util.js +++ b/util.js @@ -147,7 +147,7 @@ function updateFilters () { for (var tag in tagList) { var tagValue = tagList [tag]; if (tagValue === -1) { - $("#filter ul li:contains('" + tag + "')").remove(); + $("#filter ul li").filter (function () { return $.text([this]) === tag; }).remove(); } if (tagValue === 1) { $("#filter ul").append ("