CodeIgniter Forums
DB converting to html entities. - 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: DB converting to html entities. (/showthread.php?tid=65516)



DB converting to html entities. - Movak - 06-21-2016

Some of my textarea fields have HTML tags and entities in them. When I use the DB class update function it converts the string to use all html entities. The problem is that the DB class get function does not reverse the process.
Is there any way to either stop the conversion on update or cause a conversion on read?


RE: DB converting to html entities. - InsiteFX - 06-22-2016

php html_entity_decode

See the PHP.NET website


RE: DB converting to html entities. - Narf - 06-22-2016

No, the DB class doesn't do such conversions.