U <comment> v XML lze mít více <text>

fix #3 @1h
This commit is contained in:
2021-01-30 20:26:04 +01:00
parent b9c668841d
commit b3836d47a6
5 changed files with 49 additions and 27 deletions

View File

@@ -1,8 +1,12 @@
class Comment {
constructor(start, end, text, fulltext) {
constructor(start, end, tittle, text) {
this.start = start;
this.end = end;
this.text = text;
this.fulltext = fulltext;
this.tittle = tittle;
this.text = [];
for (let i = 0; i < text.length; i++) {
this.text.push(text[i].innerHTML);
}
}
}