6
6
class HTMLPurifier_AttrDef_CSS_DenyElementDecorator extends HTMLPurifier_AttrDef
11
11
* @param $def Definition to wrap
12
12
* @param $element Element to deny
16
16
$this->element = $element;
19
19
* Checks if CurrentToken is set and equal to $this->element
22
22
$token = $context->get('CurrentToken', true);
23
23
if ($token && $token->name == $this->element) return false;
24
24
return $this->def->validate($string, $config, $context);