Skip to content

Instantly share code, notes, and snippets.

@lsg-vtaran
Last active May 29, 2023 09:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lsg-vtaran/6962b824c60ac0d72461a3410cfed868 to your computer and use it in GitHub Desktop.
//app.component.ts
test = "<script>alert(1)</script><h1>test</h1>";
//app.component.html
<div [innerHtml]="test"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment