adspace


What are the xss security parameters?

Answer Posted / Gitika Chauhan

In CodeIgniter, to prevent Cross-Site Scripting (XSS) attacks, you can use the following methods:
1. Automatic HTML Escape: Enabled by default in CodeIgniter's output class (CI_Output). It automatically escapes any output that is sent to browser.
2. CI_Input Class: Use the `xss_clean()` function when you are handling user input data.
3. Form Validation Class: Set the 'xss_clean' validation rule for form fields.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add / link an images/css/javascript from a view in ci?

717