> I want to save the characters '<' and '>' into the database but I
> believe cake's automatic parsing is converting the html entities to
> &lt; and &gt;

I seriously doubt this is true - I've never seen this behaviour. Sure,
if you're sanitizing the input then they might get escaped [depending
on your sanitize method], but unless you tell it to, this won't happen
automatically.

Perhaps you're confusing what is actually stored in the database and
how it's displayed in HTML? For example, if the real in-the-database
value of a field is 'I <3 cake' and you generate a form, the html will
look like this:

<input type="text" [...] value="I &lt;3 cake" [...] />

This is perfectly normal. The escaping is on the display end, not the
real data. In the textbox itself you'll see the "<" sign.

If you really think there's a problem, paste the exact code you are
using and the generated SQL from the log.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to