🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.It left it unchanged
  2. B.The HTML entity <
  3. C.The URL code %3C
  4. 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 →