Skip to content
Practice
Learning
App
Learn
Practice
Design Lab
Cheatsheets
Search lessons & concepts…
Ctrl K
Loading…
Sign in
Learn
Practice
Design Lab
Cheatsheets
Question 1 of 6
A comment can end up in HTML text, in an attribute, in a JavaScript string and in a URL. Where should the escaping happen?
A comment can end up in HTML text, in an attribute, in a JavaScript string and in a URL. Where should the escaping happen?
Once, when the comment is saved, using an HTML escaper
In the browser, after the page has loaded
Just before the text is written into the page, using the rules for that spot
Nowhere, if a word blocklist removes script tags
Check answer
Sign in to save your practice and get review reminders.