/** * Fetch the whitelist of acceptable attributes for a given element name. * * @param string $element * @return array */ static function attributeWhitelist($element) { $list = Sanitizer::setupAttributeWhitelist(); return isset($list[$element]) ? $list[$element] : array(); }