DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Web Security Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Web Security
What's the same underlying principle shared between XSS escaping and SQL parameterization?
A
There is no shared principle — they're unrelated fixes
B
Both keep untrusted DATA from being reinterpreted as STRUCTURE — HTML escaping stops a string from becoming markup, parameterization stops a string from becoming query syntax
C
Both require a specific JavaScript framework
D
Both only work for GET requests
Check Answer