Zfplanet_Model_Feed::_getHtmlPurifierConfig PHP Method

_getHtmlPurifierConfig() protected static method

protected static _getHtmlPurifierConfig ( array $extra = null )
$extra array
    protected static function _getHtmlPurifierConfig(array $extra = null)
    {
        $config = HTMLPurifier_Config::createDefault();
        $config->set('Cache.SerializerPath', APPLICATION_PATH . '/../data/cache/htmlpurifier');
        $config->set('HTML.Allowed', implode(',', array('p', 'em', 'strong', 'small', 'h1', 'h2', 'h3', 'h4', 'h5', 'ul', 'ol', 'li', 'code', 'pre', 'blockquote', 'img[src|alt|height|width|style]', 'sub', 'sup', 'a[href|rel]', 'div[style]', 'span[class|style]', 'br')));
        $config->set('HTML.Doctype', 'XHTML 1.0 Strict');
        $config->set('Filter.YouTube', true);
        if (isset($extra)) {
            foreach ($extra as $key => $value) {
                $config->set($key, $value);
            }
        }
        return $config;
    }