我正在尝试为我的表单元素添加过滤器
$this->add(array(
'name' => 'name',
'attributes' => array(
'type' => 'text',
'required' => true,
),
'options' => array(
'label' => 'Name',
),
'filters' => array(
array('name' => 'StringTrim'),
array('name' => 'StripTags'),
)
));
但我仍然可以在这个元素中添加一些标签,我做错了什么?