diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 23b7f931c85..c5fba8770c2 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -2689,7 +2689,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable } `; }); - this.renderer.setProperty(this.styleElement, 'innerHTML', innerHTML); + this.renderer.setProperty(this.styleElement, 'textContent', innerHTML); } onRowDragStart(event: any, index: number) { @@ -2943,7 +2943,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable `; }); - this.styleElement.innerHTML = innerHTML; + this.styleElement.textContent = innerHTML; } } } @@ -3040,7 +3040,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable } } `; - this.renderer.setProperty(this.responsiveStyleElement, 'innerHTML', innerHTML); + this.renderer.setProperty(this.responsiveStyleElement, 'textContent', innerHTML); } } }