CodeIgniter Forums
possible to add charset for htmlspecialchars in form_validation lib? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: possible to add charset for htmlspecialchars in form_validation lib? (/showthread.php?tid=65574)



possible to add charset for htmlspecialchars in form_validation lib? - JanFromHamburg - 06-27-2016

Could I add a charset to htmspecialchars in form_validation? I get a lot of Latin1 inputs and would not like to do all changes by single rules...

PHP Code:
$this->form_validation->set_rules('text''text''htmlspecialchars'); 



RE: possible to add charset for htmlspecialchars in form_validation lib? - Narf - 06-27-2016

No, and you should be using that on inputs.