Creates an attribute-string to be used inside any <html-tag ...>


Syntax

array2attributes(array $attrs, array $blackList = []): string


Parameter

@param array $attrs Array of attributes (key) and their values. E.g. ['class'] => 'myCssClass AndMore'

@param array $blackList Optional array of strings of blacklisted attributes that shall be skipped.


Return

Returns a string in the format: ' <attribute>="<value (escaped)>" [...]'


Examples

Yet to come...

...