Fix uses of innerHtml when we could just set element text (#1919)

This commit is contained in:
Matt Irvine
2018-07-13 15:24:24 -07:00
committed by GitHub
parent 1327120024
commit fd49c081c2
6 changed files with 10 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ export function appendRow(container: Builder, label: string, labelClass: string,
container.element('tr', {}, (rowContainer) => {
rowContainer.element('td', { class: labelClass }, (labelCellContainer) => {
labelCellContainer.div({}, (labelContainer) => {
labelContainer.innerHtml(label);
labelContainer.text(label);
});
});
rowContainer.element('td', { class: cellContainerClass }, (inputCellContainer) => {