CodeIgniter Forums
Unescaping results Active Record - 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: Unescaping results Active Record (/showthread.php?tid=9518)



Unescaping results Active Record - El Forum - 06-27-2008

[eluser]spherop[/eluser]
I am sure the is patently obvious/basic. I am using AR and just basic db->insert and db->get.

My insert is automatically escaping, \' which seems cool ...so when using the get - since it's not unescaping the results, should it be?...or is there a recommended way of unescaping... ?


Unescaping results Active Record - El Forum - 06-29-2008

[eluser]spherop[/eluser]
again apologies ... if this is CI Day 1, but i am still a bit confounded. AR seems to escape everything going in by default, but not coming out? What's best approach? Everything right now is coming out "John\'s Car" ...."Jane\'s Boat" ...

thx