Web Security · Junior · Question 25 of 75

What is output encoding (escaping) in the context of XSS?

Explanation

HTML body, attribute, URL and JavaScript contexts each need different encoding. Templating engines and frameworks do this automatically when used the normal way.

Further reading

Problem with a question

Web Security · Junior · question 25

Test yourself

Take the Web Security · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz