mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
html sanitize imported notes, #1137
This commit is contained in:
@@ -12,6 +12,11 @@ class Attribute {
|
||||
this.type = row.type;
|
||||
/** @param {string} */
|
||||
this.name = row.name.toLowerCase();
|
||||
|
||||
if (typeof row.value !== 'string') {
|
||||
row.value = JSON.stringify(row.value);
|
||||
}
|
||||
|
||||
/** @param {string} */
|
||||
this.value = row.type === 'label' ? row.value.toLowerCase() : row.value;
|
||||
/** @param {boolean} */
|
||||
|
||||
Reference in New Issue
Block a user