Angular · Senior · Question 33 of 75

What does Angular do with a value bound to [innerHTML]?

Explanation

Angular treats all values as untrusted by default and sanitizes them by context (HTML, style, URL, resource URL). It logs a warning in dev mode when it strips content.

Further reading

Problem with a question

Angular · Senior · question 33

Test yourself

Take the Angular · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz