Attributes can be added as a parameter. Attributes containing illigal characters are ignored.
Width and Height attribute can be overridden. SRC-attribute not.
Values of attributes are escaped.
public getHTML ( array $options = [], array $removeAttributes = [] ) : string | ||
$options | array | Custom configurations and HTML attributes. |
$removeAttributes | array | Listof key-value pairs of HTML attributes that should be removed |
return | string | IMG-element with at least the attributes src, width, height, alt. |