Set element text instead of HTML where possible (#1956)

This commit is contained in:
Matt Irvine
2018-07-17 16:48:38 -07:00
committed by Karl Burtram
parent 708793cb23
commit 03dbe8565f
13 changed files with 25 additions and 22 deletions

View File

@@ -62,7 +62,7 @@ export class TabHeaderComponent extends Disposable implements AfterContentInit,
tabLabelcontainer.classList.add(this.tab.iconClass);
} else {
tabLabelcontainer.className = 'tabLabel';
tabLabelcontainer.innerHTML = this.tab.title;
tabLabelcontainer.textContent = this.tab.title;
}
tabLabelcontainer.title = this.tab.title;
}