How to add HTML into database? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to add HTML into database? (/showthread.php?tid=20963) |
How to add HTML into database? - El Forum - 07-27-2009 [eluser]Mareshal[/eluser] I need to add html into database, but the problem is the "global_xss_filtering" because is true. So every post input will be filtered. is this an option: $this->input->post("var", FALSE) ? How to add HTML into database? - El Forum - 07-27-2009 [eluser]umefarooq[/eluser] well i have already tried with one of my project and is working fine i used tinymce editor one solution is before saving your data just turn off the global_xss_filtering value as Code: $this->config->set_item('global_xss_filtering', 'FALSE'); for more detail check this url http://ellislab.com/codeigniter/user-guide/libraries/config.html |