html sanitize imported notes, #1137

This commit is contained in:
zadam
2020-06-30 23:37:06 +02:00
parent 51f094f87f
commit 5e18e7dc67
12 changed files with 512 additions and 4056 deletions

View File

@@ -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} */