On 28 Maig, 06:31, jeff aigner <[EMAIL PROTECTED]> wrote:
> Could you be a little more clear. I'm not sure what "escaping values
> in $form->input" really means.

What I mean is that, by default, most Cake functions escape strings
before outputting them. This means that accentuation and punctuation,
not considered to be 'normal' by the American Standards Association,
now the American National Standards Institute, is displayed as
unexpected 'escape' characters so that you might get '[EMAIL PROTECTED]'
when what you were looking for was prèsencia.

At  times this escaping is essential to prevent interaction with the
host language(s) and/or database. At other times, however, it is
undesirable. To this end, a lot of Cake functions are equipped with
the option to 'turn off' escaping - the fifth parameter to $html->link
is an example. Others don't seem to have this option. Part of the
problem is that (without criticism) Cake, like many other systems, has
developed so fast that standardisation of approach has lagged and,
where in one function you might add false as a parameter, viz: $html-
>link('blah', 'http://example.com','stuff',null,false,null) in another
it might be specified as an element in the 'options' array, viz:
array('escape'=>false,'label'=>'my label' ).

Sorry to be so long winded, buut it's a Friday.


--~--~---------~--~----~------------~-------~--~----~
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