Which HTML attribute is crucial for preventing XSS in user-generated content?
- href
- htmlspecialchars
- rel
- src
The htmlspecialchars function in PHP is crucial for preventing XSS in user-generated content. It converts special characters to HTML entities, preventing the browser from interpreting them as code. This helps to neutralize potential XSS attacks.
Loading...
Related Quiz
- When integrating a third-party library that requires database interactions, which CodeIgniter feature is most crucial for seamless integration?
- In an application that dynamically generates XML sitemaps, the key CodeIgniter component to focus on for optimization is ________.
- What is the primary function of a payment gateway in an online shopping platform?
- In CodeIgniter, how can you enable full query string support in URLs?
- ________ is a common protocol used alongside OAuth for secure authorization.