Skip to content
Sharp

Authentication · interview question

How does HTML encoding help prevent stored XSS (Cross-Site Scripting) attacks?

Multiple choiceMediumchapter-17-curatedpremiumauthenticationplaintext-passwords
Choose one answer
Answer and explanation

Correct answer

D. By converting HTML characters to safe representations.

Why

HTML encoding converts potentially dangerous HTML characters into safe representations, preventing malicious scripts from being executed when the data is rendered by a web browser.

Test yourself on Authentication

A free test with instant, explained results. No account needed.

Start free test
All Authentication questions →