public function setHtml($html)
	{
		if (is_array($html)) {
			throw new InvalidArgumentException(sprintf('Textual content must be a scalar, %s given.', gettype($html)));
		}
		$this->removeChildren();
		$this->children[] = (string)$html;

		return $this;
	}
public function setHtml($html)
	{
		if (is_array($html)) {
			throw new InvalidArgumentException(sprintf('Textual content must be a scalar, %s given.', gettype($html)));
		}
		$this->removeChildren();
		$this->children[] = (string)$html;

		return $this;
	}
public function setHtml ( $ html ) { if ( is_array ( $ html ) ) { throw new InvalidArgumentException ( sprintf ( 'Textual content must be a scalar, %s given.' , gettype ( $ html ) ) ) ; } $ this -> removeChildren ( ) ; $ this -> children [ ] = ( string ) $ html ; return $ this ; }
Sets element's HTML content.

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