Reputation: 9763
I'm looking for this new concept (for me) of Sanitize the HTML,
I've read all about what this module does, but I really don't understand what's that for, and where use it, and what this can contribute for my future projects.
If some of you want to read about that > here
p.s: I just want a practical answer nothing too long.
Thanks in advance.
Upvotes: 2
Views: 452
Reputation: 324
When your app accepts input that is to be compiled as HTML - you would use the $sanitize
service to ensure that the accepted inputs are free from attempts to inject malicious code.
Upvotes: 2