Thanks Hector,
I'm not having any luck with
    'filters'    => array(
array('StripTags', array(array('allowedTags' =>array('a','ul','ol','li','ul','br')))),
         ),
None of the tags are stripped.
Thanks --cg

Hector Virgen wrote:


> > The constructor for striptags changed recently. You need to pass in an
> > associative array, wrapped within another array for Zend_Form:
> >
> > array(array('allowedTags' => array('a', 'b'...)))
> >
> > On 2/5/10, cerealgirl <[email protected]> wrote:
> >
>
>> >> Hi,
>> >> I'm trying to apply the strip tags filter to a dojo enabled form in
>> >> ZF1.10. I'm passing an array of allowed tags, but only the first element
>> >> in the array is passing - all other tags are stripped. I must be missing
>> >> something?
>> >>
>> >>  $this->addElement('editor', 'description',array(
>> >>               'label'    => 'Description: ',
>> >>           'required'=> false,
>> >>           'description' => 'Please describe the event,',
>> >>            'filters'    => array(
>> >>                   array('StripTags', 
array('a','ul','ol','li','span','br')),
>> >>             ),
>> >>           'dojoType'    => 'dijit.Editor'
>> >>
>> >>           )
>> >>           );
>> >>
>> >> This allows 'a' tags, but strips all others.
>> >> Is this a bug. or have I made an error in passing my allowedTags array?
>> >> Thanks. --cg
>> >>

Reply via email to