src/HTMLTag.php
public function getFormattedAttributes()
    {
        $rtn = "";
        foreach($this->listAttributes() as $name => $value)
        {
            $rtn .= sprintf(" %s=\"%s\"",htmlentities($name),htmlentities($value));
        }
        return $rtn;
    }
public function getFormattedAttributes()
    {
        $rtn = "";
        foreach($this->listAttributes() as $name => $value)
        {
            $rtn .= sprintf(" %s=\"%s\"",htmlentities($name),htmlentities($value));
        }
        return $rtn;
    }
public function getFormattedAttributes ( ) { $ rtn = "" ; foreach ( $ this -> listAttributes ( ) as $ name => $ value ) { $ rtn .= sprintf ( " %s=\"%s\"" , htmlentities ( $ name ) , htmlentities ( $ value ) ) ; } return $ rtn ; }
Format and return attributes in a name="value" format as
it should appear in an HTML tag.
@return  string
Format and return attributes in a name = value format as it should appear in an HTML tag .