Angular · Security · Tech Lead · Concept
How does Angular help prevent XSS?
Short Interview Answer
Template binding sanitizes untrusted values; avoid bypassing DomSanitizer except for trusted content.
Detailed Explanation
Never build HTML with string concat from user input. Prefer text binding. Audit innerHTML usage.