How does cake handle output escaping? If I have a var to pass to a
view:
$this->set('thing', '<blah>');
and I echo it in my view
<?php echo $thing; ?>
I going to get unescaped output. I could do:
<?php echo htmlentities($thing); ?>
But that's cumbersome to do all the time. I was wondering if Cake had
something built-in for handling this automatically, perhaps where you
can set a default output context (e.g. HTML, URL, SQL, CSV escaping
formats) for a view and output through a helper?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---