In case of user submitted text, when outputting to the page, what text filter do you use both in input and output?
As I understand it, using $this->input->post('something',true) will clean XSS content from the input data, so there is no other thing to do to be secure? Something like htmlspecialchars(), strip_tags(), etc.?
Also i would like to know if for example htmlspecialchars() is good to use, why CI security library doesn’t applyes htmlspecialchars() by default to the passed string?
Kinda depends on what you’re doing with this input, but most likely you’re going to want to run the string through
htmlspecialchars()also.