attr = $attr; $this->css = $css; } /** * * @param array $attr * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return array */ public function transform($attr, $config, $context) { if (! isset ( $attr [$this->attr] )) { return $attr; } unset ( $attr [$this->attr] ); $this->prependCSS ( $attr, $this->css ); return $attr; } } // vim: et sw=4 sts=4