Multiple ChoiceIntermediate 30s
innerHTML Danger
Choose the best answer for: innerHTML risk
Options
- 1innerHTML is always safe because the browser sanitizes input
- 2innerHTML with user input can execute arbitrary scripts
- 3innerHTML only works with trusted content and rejects others
- 4innerHTML escapes HTML automatically so tags render as text
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.