Skip to content

Commit 5277282

Browse files
committed
Fix history tags dropdown should unescape html
1 parent 0458d4a commit 5277282

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

public/js/cover.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var clearDuplicatedHistory = historyModule.clearDuplicatedHistory;
2525

2626
var saveAs = require('file-saver').saveAs;
2727
var List = require('list.js');
28+
var S = require('string');
2829

2930
var options = {
3031
valueNames: ['id', 'text', 'timestamp', 'fromNow', 'time', 'tags', 'pinned'],
@@ -390,7 +391,7 @@ function buildTagsFilter(tags) {
390391
for (var i = 0; i < tags.length; i++)
391392
tags[i] = {
392393
id: i,
393-
text: tags[i]
394+
text: S(tags[i]).unescapeHTML().s
394395
};
395396
filtertags = tags;
396397
}

0 commit comments

Comments
 (0)