It’s clear enough for us to know most of XSS in Angular. But for someone who are not smart enough like me, still figure out how to use it in application. After referring to the official website, I got it. Actually, You told us “DomSanitizer” is a service, all we need to do is to inject the service in the constructor. Again, I am not smart enough….
So, my point is , adding a very simple example about how to use it in the real project would be perfect for readers like me.