xss - validate HTML in angular -


how can validate valid looking html below while validating html content received user/service. $sanitize not seem identify it.

for example,

<img src='image' onerror='alert()' /> 

how can remove of invalud html alert()? or $sanitize treat these kind of blocks valid html?

tia


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -