[eluser]chillbill7[/eluser]
I need to store html code (full page) in my database, but I'm having trouble when inserting it. If I insert the page with phpMyAdmin it works perfectly (I store it in a TEXT data type, just copy-pasting the code), but when I use CodeIgniter (ActiveRecord insert with the code coming from a form textarea) it will mess it up quite a bit. It transforms some characters to html entities, which I understand is escaping for security reasons, not a big problem. The big problem is that, from a 34300 character html file, only 7291 characters are stored (and this includes the "new" html entities, which take up more characters than the original). Where is the lost data going? Any ideas? Is there a better way to store html code?
Thanks!