Skip to content

Commit

Permalink
Merge pull request #16154 from aaronshim/patch-1
Browse files Browse the repository at this point in the history
Change .innerHTML assignments in table.ts to .textContent
  • Loading branch information
cetincakiroglu authored Aug 8, 2024
2 parents b658eac + 8a02632 commit ba12baf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -2943,7 +2943,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
`;
});

this.styleElement.innerHTML = innerHTML;
this.styleElement.textContent = innerHTML;
}
}
}
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit ba12baf

Please sign in to comment.