public function setAllowedAttributes($attributes)
        {
            if(!is_array($attributes)) {
                $attributes = [$attributes];
            }
            $this->allowedAttributes = $attributes;
            return $this;
        }
public function setAllowedAttributes($attributes)
        {
            if(!is_array($attributes)) {
                $attributes = [$attributes];
            }
            $this->allowedAttributes = $attributes;
            return $this;
        }
public function setAllowedAttributes ( $ attributes ) { if ( ! is_array ( $ attributes ) ) { $ attributes = [ $ attributes ] ; } $ this -> allowedAttributes = $ attributes ; return $ this ; }
Set the HTML attributes that should be left in the unstripped tags in the input string

@param array $attributes The allowed attributes: either an array or a string with a single attribute.

@return \Thin\Filter\StripTags Provides a fluent interface
Set the HTML attributes that should be left in the unstripped tags in the input string