Alvaro Silvino
Alvaro Silvino

Reputation: 9763

What Sanitize modules are for?

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

Answers (1)

Kevin Friedheim
Kevin Friedheim

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

Related Questions