summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-12 13:14:59 +0800
committerWu Cheng-Han2016-10-12 13:14:59 +0800
commit07673f07262a3e742b06d886b23a2969a6abe58a (patch)
tree7e87aa830c022933b0785fdeaf53e248591d8c5f /lib
parentf5d471106c35f5ebb3aa28ccd73bd32dac6d79d9 (diff)
Fix note extract tags might get encoded HTML entity
Diffstat (limited to '')
-rw-r--r--lib/models/note.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/note.js b/lib/models/note.js
index 7fdc5645..05ed04c0 100644
--- a/lib/models/note.js
+++ b/lib/models/note.js
@@ -285,7 +285,7 @@ module.exports = function (sequelize, DataTypes) {
if (/^tags/gmi.test($(value).text())) {
var codes = $(value).find("code");
for (var i = 0; i < codes.length; i++) {
- var text = $(codes[i]).html().trim();
+ var text = S($(codes[i]).text().trim()).stripTags().s;
if (text) rawtags.push(text);
}
}