don't use the javascript: part.

array( 'onclick' =>"setFilterCbValue('foobar');")


On Thu, Jul 23, 2009 at 2:09 PM, Roland Cruse <cruses...@gmail.com> wrote:

>
> Hi
>
> Anyone know how to avoid filtering of javascript code in attributes
> passed to a widget?
>
> For example  array( 'onclick' =>
> "javascript:setFilterCbValue('foobar');") gets sent but when the
> filter renders to html:
>
> onclick="&quot;javascript:setFilterCbValue(&#039;foo&#039;);&quot;"
>
> I think it is the htmlspecialchars (or something like that) inside the
> widget but how would I override it?
>
> Thanks in advance for any clues, tips, links.
>
> >
>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~---------~--~----~------------~-------~--~----~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to