[eluser]Unknown[/eluser]
Hello all,
I am just getting started using Code Igniter, so please be patient with me
Following the blog screencast, I started of using the scaffolding feature and a simple view. I am not sure, however how to handle HTML encoding of content coming from the database.. what's the recommended way to do it?
As far as I can see one could (a) do the encoding when entering into the database (but scaffolding wouldn't do this, right?), (b) manually do htmlspecialchars() in the controller before sending the data to the view and lastly © manually do htmlspecialchars() in the view.
Or am I missing something completely? (I
do have to encode ampersands for HTML valdition)
More or less a similar topic: Using UTF-8 as for various encodings is the recommended way to in CI nowadays, right? (I have read about some pitfalls regarding some components, but I ain't sure how much CI 1.8 has improved on that matter).
have a nice day|thanks for your time
g