Matthew,

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):

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!

Regards, TJ.

Reply via email to