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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -