diff options
author | Yukai Huang | 2016-10-12 17:39:38 +0800 |
---|---|---|
committer | Yukai Huang | 2016-10-12 17:39:38 +0800 |
commit | 6b6b534866fe4a5d90413349f2276dea7f25214d (patch) | |
tree | 32f6f4e7a9fac44b785ae2da58b53ab9c5d92abf /lib | |
parent | 0bf3c63622a61e784cd00bc21a7e04661a9d6761 (diff) | |
parent | 07673f07262a3e742b06d886b23a2969a6abe58a (diff) |
Merge branch 'master' into webpack-frontend
Diffstat (limited to '')
-rw-r--r-- | lib/models/note.js | 2 |
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); } } |