← Quiz: XSS: all 10 questions
Quiz: XSS · Question 4 of 10
What did html.escape turn the < of the payload into?
What did html.escape turn the < of the payload into?
- A.It left it unchanged
- B.The HTML entity <
- C.The URL code %3C
- D.It deleted it
Answer & explanation
Correct answer: The HTML entity <
HTML escaping converts < to < so the browser displays it instead of opening a tag.
Can you get the rest right without peeking?
Take the timed Quiz: XSS quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →