public function getHTML() {
        $tag = "<" . $this->name;
        $q = $this->quoteType;

        //build attribute strings
        foreach( $this->attrs as $name=>$value ) {
            //if true, such as CHECKED, we just add the name
            if( $value === true ) {
                $tag .= " $name";
            } else if( is_string( $value ) ) { //if it's a string, we add attr="value"
                $tag .= " {$name}={$q}{$value}{$q}";
            }
        }

        //short tag? close it and return
        if( $this->isShortTag ) {
            $tag .= ' />';
            
            return $tag;
        }

        //not a short tag, close it
        $tag .= '>';

        //add the children if they exist
        if( $this->hasChildren() ) {
            foreach( $this->getChildren() as $child ) {
                $tag .= $child->getHTML();
            }
        }

        //closing tag
        $tag .= "</{$this->name}>";

        return $tag;
    }
public function getHTML() {
        $tag = "<" . $this->name;
        $q = $this->quoteType;

        //build attribute strings
        foreach( $this->attrs as $name=>$value ) {
            //if true, such as CHECKED, we just add the name
            if( $value === true ) {
                $tag .= " $name";
            } else if( is_string( $value ) ) { //if it's a string, we add attr="value"
                $tag .= " {$name}={$q}{$value}{$q}";
            }
        }

        //short tag? close it and return
        if( $this->isShortTag ) {
            $tag .= ' />';
            
            return $tag;
        }

        //not a short tag, close it
        $tag .= '>';

        //add the children if they exist
        if( $this->hasChildren() ) {
            foreach( $this->getChildren() as $child ) {
                $tag .= $child->getHTML();
            }
        }

        //closing tag
        $tag .= "</{$this->name}>";

        return $tag;
    }
public function getHTML ( ) { $ tag = "<" . $ this -> name ; $ q = $ this -> quoteType ; //build attribute strings
 foreach ( $ this -> attrs as $ name => $ value ) { //if true, such as CHECKED, we just add the name
 if ( $ value === true ) { $ tag .= " $name" ; } else if ( is_string ( $ value ) ) { //if it's a string, we add attr="value"
 $ tag .= " {$name}={$q}{$value}{$q}" ; } } //short tag? close it and return
 if ( $ this -> isShortTag ) { $ tag .= ' />' ; return $ tag ; } //not a short tag, close it
 $ tag .= '>' ; //add the children if they exist
 if ( $ this -> hasChildren ( ) ) { foreach ( $ this -> getChildren ( ) as $ child ) { $ tag .= $ child -> getHTML ( ) ; } } //closing tag
 $ tag .= "</{$this->name}>" ; return $ tag ; }
Parses the class data and outputs the HTML.

@return the HTML string of the element
Parses the class data and outputs the HTML .