Skip to content

Commit ba12baf

Browse files
Merge pull request #16154 from aaronshim/patch-1
Change .innerHTML assignments in table.ts to .textContent
2 parents b658eac + 8a02632 commit ba12baf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/components/table/table.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,7 +2689,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
26892689
}
26902690
`;
26912691
});
2692-
this.renderer.setProperty(this.styleElement, 'innerHTML', innerHTML);
2692+
this.renderer.setProperty(this.styleElement, 'textContent', innerHTML);
26932693
}
26942694

26952695
onRowDragStart(event: any, index: number) {
@@ -2943,7 +2943,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
29432943
`;
29442944
});
29452945

2946-
this.styleElement.innerHTML = innerHTML;
2946+
this.styleElement.textContent = innerHTML;
29472947
}
29482948
}
29492949
}
@@ -3040,7 +3040,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
30403040
}
30413041
}
30423042
`;
3043-
this.renderer.setProperty(this.responsiveStyleElement, 'innerHTML', innerHTML);
3043+
this.renderer.setProperty(this.responsiveStyleElement, 'textContent', innerHTML);
30443044
}
30453045
}
30463046
}

0 commit comments

Comments
 (0)