Web Security · Middle · Question 6 of 75

What does Angular's bypassSecurityTrustHtml() do?

Explanation

Angular sanitizes values bound to [innerHTML] by default. Bypass methods should be rare and applied only to content you fully control.

Further reading

Problem with a question

Web Security · Middle · question 6

Test yourself

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

Take this quiz