public function renderOpeningTag() : string
    {
        $result = '<' . $this->name;

        foreach ($this->attributes as $name => $value) {
            $result .= sprintf(' %s="%s"', $name, htmlspecialchars($value, ENT_COMPAT | ENT_HTML5));
        }

        $result .= '>';

        return $result;
    }
public function renderOpeningTag() : string
    {
        $result = '<' . $this->name;

        foreach ($this->attributes as $name => $value) {
            $result .= sprintf(' %s="%s"', $name, htmlspecialchars($value, ENT_COMPAT | ENT_HTML5));
        }

        $result .= '>';

        return $result;
    }
public function renderOpeningTag ( ) : string { $ result = '<' . $ this -> name ; foreach ( $ this -> attributes as $ name => $ value ) { $ result .= sprintf ( ' %s="%s"' , $ name , htmlspecialchars ( $ value , ENT_COMPAT | ENT_HTML5 ) ) ; } $ result .= '>' ; return $ result ; }
Renders the opening tag.

@return string
Renders the opening tag .