public function prepareGenerator($config)
    {
        $all = $config->getAll();
        $context = new HTMLPurifier_Context();
        $this->generator = new HTMLPurifier_Generator($config, $context);
    }
public function prepareGenerator($config)
    {
        $all = $config->getAll();
        $context = new HTMLPurifier_Context();
        $this->generator = new HTMLPurifier_Generator($config, $context);
    }
public function prepareGenerator ( $ config ) { $ all = $ config -> getAll ( ) ; $ context = new HTMLPurifier_Context ( ) ; $ this -> generator = new HTMLPurifier_Generator ( $ config , $ context ) ; }
Give generator necessary configuration if possible
@param HTMLPurifier_Config $config
Give generator necessary configuration if possible