public function setText($text)
	{
		if (!is_array($text) && !$text instanceof self) {
			$text = htmlspecialchars((string)$text, ENT_NOQUOTES, 'UTF-8');
		}

		return $this->setHtml($text);
	}
public function setText($text)
	{
		if (!is_array($text) && !$text instanceof self) {
			$text = htmlspecialchars((string)$text, ENT_NOQUOTES, 'UTF-8');
		}

		return $this->setHtml($text);
	}
public function setText ( $ text ) { if ( ! is_array ( $ text ) && ! $ text instanceof self ) { $ text = htmlspecialchars ( ( string ) $ text , ENT_NOQUOTES , 'UTF-8' ) ; } return $ this -> setHtml ( $ text ) ; }
Sets element's textual content.

@param  string
@return self
@throws InvalidArgumentException
Sets element s textual content .