Try:
$allowed_tags = array('img', 'a', 'strong', 'span'); $allowed_attributes = array('alt', 'href', 'width', 'height'); $filter = new Zend_Filter_StripTags($allowed_tags, $allowed_attributes); $output = array_map(array($filter, 'filter'), $my_result);
Not tested due to lack of env.
Edit:
After you inserted the var dump, try the following:
$allowed_tags = array('img', 'a', 'strong', 'span'); $allowed_attributes = array('alt', 'href', 'width', 'height'); $filter = new Zend_Filter_StripTags($allowed_tags, $allowed_attributes); $output = array(); foreach ( $my_result as $data ) { $data['value'] = $filter->filter($data['value']); $output[] = $data; }
source share