Welcome Guest, Not a member yet? Register   Sign In
Automatic stripslashes() of everything retrieved from database?
#1

[eluser]Jakobud[/eluser]
When using the ActiveRecord database classes, the data (by default) is automatically escaped using the XSS-Clean stuff. So naturally there can end up being a lot of data in the database that is escaped with backslashes.

Is there anyway to automatically strip the slashes of all the data retrieved from the database in my models?

I can obviously just use stripslashes() on the data when I use/echo it in my views, but it would be nice not have have to stripslashes() for every single bit of data... I figured maybe there is an easy way for CI to do it for you when you are retrieving the data? Any clues?


Messages In This Thread
Automatic stripslashes() of everything retrieved from database? - by El Forum - 09-25-2010, 08:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB