Multiple ChoiceIntermediate 30s
Output Encoding
Choose the best answer for: output encoding
Options
- 1Encoding is only for URLs and query string parameters
- 2Encode output based on context (HTML, JS, URL) to prevent XSS
- 3Output encoding is optional when the input was sanitized
- 4Raw output is always safe because the browser escapes it
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.