sanitize label value

This commit is contained in:
J Rao 2023-03-06 21:28:09 +08:00
parent fdffc27bb6
commit 2389ab30f8

View File

@ -103,8 +103,8 @@ function createNote(req) {
if (labels) {
for (const labelName in labels) {
console.log('set label ' + labelName + ' on the new note!');
note.setLabel(labelName, labels[labelName]);
const labelValue = htmlSanitizer.sanitize(labels[labelName]);
note.setLabel(labelName, labelValue);
}
}