4 * Validates a boolean attribute
6 class HTMLPurifier_AttrDef_HTML_Bool extends HTMLPurifier_AttrDef
10 public $minimized = true;
12 public function __construct($name = false) {$this->name = $name;}
14 public function validate($string, $config, $context) {
15 if (empty($string)) return false;
20 * @param $string Name of attribute
22 public function make($string) {
23 return new HTMLPurifier_AttrDef_HTML_Bool($string);