I'm developing an app using Codeigniter V3
I use $this->input->post(NULL,TRUE) to prevent xss attack
but i want to escapse html too with the same function.
is there any way to do this?
NOTE: i use this function in all app and it's so hard to call html_escape after this function.
is there any hook to replace < character with empty in codeigniter or any other solution?
Asked
Active
Viewed 28 times
0
Mohammadreza Esmaeeli
- 161
- 11
-
Possible duplicate of [CodeIgniter - why use xss\_clean](https://stackoverflow.com/questions/5337143/codeigniter-why-use-xss-clean) – G_real Feb 19 '19 at 20:31
-
no it's not duplicate.how to escape html using this function? – Mohammadreza Esmaeeli Feb 19 '19 at 21:14