public function filter($value) { $filterChain = new Zend_Filter(); $htmlFilter = new HausDesign_Filter_HtmlPurifier(); $config = $htmlFilter->getConfig(); $config->set('AutoFormat', 'AutoParagraph', true); $config->set('AutoFormat', 'Linkify', true); $filterChain->addFilter($htmlFilter); //$geshiFilter = new HausDesign_Filter_Geshi(); //$filterChain->addFilter($geshiFilter); return $filterChain->filter($value); }
public function filter($value) { $filterChain = new Zend_Filter(); $htmlFilter = new HausDesign_Filter_HtmlPurifier(); $config = $htmlFilter->getConfig(); $config->set('AutoFormat', 'AutoParagraph', true); $config->set('AutoFormat', 'Linkify', true); $allowed = $this->getAllowed(); if (null !== $allowed) { $config->set('HTML', 'Allowed', $allowed); } $filterChain->addFilter($htmlFilter); //$geshiFilter = new HausDesign_Filter_Geshi(); //$filterChain->addFilter($geshiFilter); return $filterChain->filter($value); }