src/Tomahawk/Html/HtmlBuilder.php
public function attributeElement($key, $value)
    {
        if (is_numeric($key)) {
            $key = $value;
        }

        if ( ! is_null($value)) {
            return $key.'="'.$this->entities($value).'"';
        }
    }
public function attributeElement($key, $value)
    {
        if (is_numeric($key)) {
            $key = $value;
        }

        if ( ! is_null($value)) {
            return $key.'="'.$this->entities($value).'"';
        }
    }
Build a single attribute element.

@param  string  $key
@param  string  $value
@return string