diff options
author | Wu Cheng-Han | 2016-11-29 21:33:29 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-11-29 21:33:29 +0800 |
commit | 52772829ce8ccc7eac1fe1df9ace65d90ef36a2c (patch) | |
tree | 7ebe35e96384ccbc6fc9e597797e451981d700c7 /public | |
parent | 0458d4a462da5b67d05534bd85faddf2e53f8080 (diff) |
Fix history tags dropdown should unescape html
Diffstat (limited to '')
-rw-r--r-- | public/js/cover.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/cover.js b/public/js/cover.js index 6bc55dd9..2f35bd28 100644 --- a/public/js/cover.js +++ b/public/js/cover.js @@ -25,6 +25,7 @@ var clearDuplicatedHistory = historyModule.clearDuplicatedHistory; var saveAs = require('file-saver').saveAs; var List = require('list.js'); +var S = require('string'); var options = { valueNames: ['id', 'text', 'timestamp', 'fromNow', 'time', 'tags', 'pinned'], @@ -390,7 +391,7 @@ function buildTagsFilter(tags) { for (var i = 0; i < tags.length; i++) tags[i] = { id: i, - text: tags[i] + text: S(tags[i]).unescapeHTML().s }; filtertags = tags; } |