public function allowAttribute($attribute)
    {
        if (is_array($attribute))
        {
            foreach ($attribute as $attrib)
                $this->allowed_attributes[$attrib] = true;
        }
        else
            $this->allowed_attributes[$attribute] = true;
        return $this;
    }
public function allowAttribute($attribute)
    {
        if (is_array($attribute))
        {
            foreach ($attribute as $attrib)
                $this->allowed_attributes[$attrib] = true;
        }
        else
            $this->allowed_attributes[$attribute] = true;
        return $this;
    }
public function allowAttribute ( $ attribute ) { if ( is_array ( $ attribute ) ) { foreach ( $ attribute as $ attrib ) $ this -> allowed_attributes [ $ attrib ] = true ; } else $ this -> allowed_attributes [ $ attribute ] = true ; return $ this ; }
Add an attribute to the whitelist

@param $attribute string|Array The name of the attribute to add to the whitelist.
Can also be an array to add multiple attributes.
@return SafeHTML Provides fluent interface
Add an attribute to the whitelist