src/Tag.php
public function setText($value)
    {
        $this->text = $value;

        // Auto-convert into html.
        if (is_object($value) && stripos(get_class($value), 'HtmlGenerator\\Html')) {
            $this->text = (string) $value;
        }

        return $this;
    }
public function setText($value)
    {
        $this->text = $value;

        // Auto-convert into html.
        if (is_object($value) && stripos(get_class($value), 'HtmlGenerator\\Html')) {
            $this->text = (string) $value;
        }

        return $this;
    }
public function setText ( $ value ) { $ this -> text = $ value ; // Auto-convert into html. if ( is_object ( $ value ) && stripos ( get_class ( $ value ) , 'HtmlGenerator\\Html' ) ) { $ this -> text = ( string ) $ value ; } return $ this ; }
Set the text for this tag.

@param string $value

@return Bluora\LaravelHtmlBuilder\Tag
Set the text for this tag .