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

php - Embed BBCode within itself not working -

minify - Minimizing css files -

Connecting Spring Batch to Remote Cassandra Database -