Describe how CodeIgniter handles data sanitization when passing data to views.

  • CodeIgniter automatically applies HTML escaping to all data passed to views.
  • CodeIgniter relies on the browser to sanitize data for views.
  • CodeIgniter uses JavaScript to sanitize data before rendering it in views.
  • Data sanitization is not handled by CodeIgniter; developers must manually sanitize data.
CodeIgniter automatically applies HTML escaping to all data passed to views, preventing cross-site scripting (XSS) attacks by default. This ensures that user input is safely rendered in the views without introducing security vulnerabilities.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *