Web Security · Middle · Question 11 of 75

An app writes a user's display name into an attribute without quotes: <div title={{name}}>. What makes this worse than a quoted attribute?

Explanation

Unquoted attributes can be broken by many characters. Always quote attributes and use attribute encoding.

Further reading

Problem with a question

Web Security · Middle · question 11

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