public function setHtml($html)
    {
        if (!\is_string($html)) {
            throw new \InvalidArgumentException('The provided HTML must be a string.', 1540403913);
        }
        if ($html === '') {
            throw new \InvalidArgumentException('The provided HTML must not be empty.', 1540403910);
        }

        $this->createUnifiedDomDocument($html);
    }
public function setHtml($html)
    {
        if (!\is_string($html)) {
            throw new \InvalidArgumentException('The provided HTML must be a string.', 1540403913);
        }
        if ($html === '') {
            throw new \InvalidArgumentException('The provided HTML must not be empty.', 1540403910);
        }

        $this->createUnifiedDomDocument($html);
    }
public function setHtml ( $ html ) { if ( ! \ is_string ( $ html ) ) { throw new \ InvalidArgumentException ( 'The provided HTML must be a string.' , 1540403913 ) ; } if ( $ html === '' ) { throw new \ InvalidArgumentException ( 'The provided HTML must not be empty.' , 1540403910 ) ; } $ this -> createUnifiedDomDocument ( $ html ) ; }
Sets the HTML to process.

@param string $html the HTML to process, must be UTF-encoded, must not be empty

@return void

@throws \InvalidArgumentException if $unprocessedHtml is anything other than a non-empty string
Sets the HTML to process .