diff --git a/lib/models/note.js b/lib/models/note.js index 7fdc564..05ed04c 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); } }