public static function make(TagInterface $tag)
    {
        if (
            $tag->getType() === '' and
            $tag->getText() !== ''
        ) {
            return $tag->getText();
        }

        return self::isAutoClosed($tag->getType())
            ? self::open($tag, true)
            : self::open($tag) . $tag->getText() . $tag->renderElements() . self::close($tag);
    }
public static function make(TagInterface $tag)
    {
        if (
            $tag->getType() === '' and
            $tag->getText() !== ''
        ) {
            return $tag->getText();
        }

        return self::isAutoClosed($tag->getType())
            ? self::open($tag, true)
            : self::open($tag) . $tag->getText() . $tag->renderElements() . self::close($tag);
    }
public static function make ( TagInterface $ tag ) { if ( $ tag -> getType ( ) === '' and $ tag -> getText ( ) !== '' ) { return $ tag -> getText ( ) ; } return self :: isAutoClosed ( $ tag -> getType ( ) ) ? self :: open ( $ tag , true ) : self :: open ( $ tag ) . $ tag -> getText ( ) . $ tag -> renderElements ( ) . self :: close ( $ tag ) ; }
Render a Tag and its elements

@param TagInterface $tag

@return string
Render a Tag and its elements