Vue · Junior · Question 6 of 75

What does {{ message }} do in a Vue template?

Explanation

Mustache syntax outputs plain text, so it is safe from XSS. To render HTML you need v-html, which should never receive untrusted content.

Further reading

Problem with a question

Vue · Junior · question 6

Test yourself

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

Take this quiz