Currently, I need to include HTML in my TypeScript file using the [innerHTML] tag within the template.
I am attempting to add a click function within the HTML:
status = "<img src='assets/hello.png' (click)='hello()' />";
However, the click function is removed and a warning message appears in the console:
WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss).
I have seen suggestions about using "DomSanitizer" but haven't come across an example that addresses my specific issue.