Welcome Guest, Not a member yet? Register   Sign In
escape html-entities
#8

[eluser]drewbee[/eluser]
I personally would consider it bad practice, just even for the simple example I gave above.

Personally I would stay away from a decorator type of deal as for the case when you actually do not want to convert data from the database. CI has some built in functions to handle this coming out. I prefer to set this all in the view regardless so in the view I have control over what gets escaped and not. I'm sure it wouldn't be that hard to put in as an extension to the current library.


Messages In This Thread
escape html-entities - by El Forum - 10-27-2008, 07:53 AM
escape html-entities - by El Forum - 10-29-2008, 03:38 AM
escape html-entities - by El Forum - 10-29-2008, 08:36 AM
escape html-entities - by El Forum - 10-29-2008, 08:57 AM
escape html-entities - by El Forum - 10-29-2008, 09:08 AM
escape html-entities - by El Forum - 10-29-2008, 09:18 AM
escape html-entities - by El Forum - 10-29-2008, 10:33 AM
escape html-entities - by El Forum - 10-29-2008, 11:05 AM
escape html-entities - by El Forum - 10-29-2008, 12:02 PM
escape html-entities - by El Forum - 10-29-2008, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB