How do I apply stripslashes() to all form elements prior to output with Zend_Form?
I have tried:
//the filter
class lib_filters_Stripslashes implements Zend_Filter_Interface{
public function filter($value){
return stripslashes($value);
}
}
...
...
...
//In the form
$form->setElementFilters(array(new lib_filters_Stripslashes));