Vue · Senior · Question 27 of 75

Why is mounting Vue on server-rendered HTML that contains user content dangerous?

Explanation

Never let user content become part of a template. Escape it on the server or use precompiled SFCs, where user data is only ever bound as data.

Further reading

Problem with a question

Vue · Senior · question 27

Test yourself

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

Take this quiz