Svelte · Junior · Question 25 of 76

What is the risk of {@html content}?

Explanation

Only use it with trusted or sanitized HTML. Scoped styles also don't apply to markup inserted this way.

Further reading

Problem with a question

Svelte · Junior · question 25

Test yourself

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

Take this quiz