mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
sanitize label value
This commit is contained in:
parent
fdffc27bb6
commit
2389ab30f8
@ -103,8 +103,8 @@ function createNote(req) {
|
|||||||
|
|
||||||
if (labels) {
|
if (labels) {
|
||||||
for (const labelName in labels) {
|
for (const labelName in labels) {
|
||||||
console.log('set label ' + labelName + ' on the new note!');
|
const labelValue = htmlSanitizer.sanitize(labels[labelName]);
|
||||||
note.setLabel(labelName, labels[labelName]);
|
note.setLabel(labelName, labelValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user