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