Interview Question

How do you prevent XSS?

Short, clear answer + key notes. Use the sidebar to browse more questions.

💡 Concept ✅ Quick Revision 💻 PHP

Answer

Use htmlspecialchars for HTML output, escape by context, and validate inputs.