Hi,

yes, it's possible, not as a class, but rather as a _function_.

You can define you own escaping function: grep for "ESC_ENTITIES" and
look like it's done in symfony 1.0 core, you can do the same with your
custom escaping function.

We backported htmlspecialchars() escaping from sf 1.1 to sf 1.0 this way.

Regards,

Sebastian


2008/4/3, Ian P. Christian <[EMAIL PROTECTED]>:
>
>  Alex wrote:
>  > Hello,
>  >
>  > I would like to use my own class for escaping output.
>  >
>  > escaping_method:   ESC_ENTITIES   # Function or helper used for
>  > escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS,
>  > ESC_JS_NO_ENTITIES.
>
>
> Unforunatly, you can't - atleast not in sf1.0 (I've not checked sf1.1,
>  but I'm sure you'll be able to).
>
>  lib/view/sfPHPView.class.php
>
>   98     if ($_escaping !== false)
>   99     {
>  100       $sf_data = sfOutputEscaper::escape($this->getEscapingMethod(),
>  $this->attributeHolder->getAll());
>
>
>  It's a static call there, so.... not mcuh youcan do with it.
>
>  What are you trying to do out of interest?
>
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to