Matthew, Didn't help. Like I said before, the options are being passed, but by the time $this->getFilters() gets called. The tags are vanished.... I'll investigate more closely when I'm back home.
Regards, TJ. On Wed, Jul 16, 2008 at 9:47 PM, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > -- Taco Jung <[EMAIL PROTECTED]> wrote > (on Wednesday, 16 July 2008, 09:27 PM +0200): > > I've checked Zend_Form_Element's flow. All the filters are set correctly, > up > > till $this->addFilter(): > > > > > > Array([StripTags] => Array([filter] => StripTags [options] => Array( > [allowedTags] => > > > > > <a><p><strong><em><u><h1><h2><h3><h4><h5><h6><img><li><ol><ul><span><div><br><th><tr><td><form><dl><dt><dd><input><textarea> > > > > ) > > ) > > ) > > > > However by the time $this->getFilters() gets called, the options are gone > (see > > the dump of $this->_filters and $filters when initialized): > > I added a test case, and the options _are_ being passed. So then I > looked at your test case more closely, and I found the issue -- it's in > your configuration file. You should pass an _array_ of tags, NOT a string > with tags. Try the following: > > <filters> > <striptags> > <filter>StripTags</filter> > <options> > <allowedTags> > <tag><!CDATA[<a>]]></tag> > <tag><!CDATA[<p>]]></tag> > <tag><!CDATA[<strong>]]></tag> > // ... > </allowedTags> > </options> > </striptags> > </filters> > > > > Array ( [StripTags] => Array ( [filter] => StripTags [options] => Array ( > ) ) > > [HtmlEntities] => Array ( [filter] => HtmlEntities [options] => Array ( ) > ) ) > > > > Array ( [Zend_Filter_StripTags] => Zend_Filter_StripTags Object ( > > [commentsAllowed] => [_tagsAllowed:protected] => Array ( ) > > [_attributesAllowed:protected] => Array ( ) ) [Zend_Filter_HtmlEntities] > => > > Zend_Filter_HtmlEntities Object ( [_quoteStyle:protected] => 2 > > [_charSet:protected] => ISO-8859-1 ) ) > > > > Empty arrays for the allowedTags, _tagsAllowed. Puzzled! > > -- > Matthew Weier O'Phinney > Software Architect | [EMAIL PROTECTED] > Zend Framework | http://framework.zend.com/ >
