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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -