protected function setHtmlContent($htmlContent)
    {
        if (is_string($htmlContent)) {
            $this->content = $htmlContent;
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($htmlContent). "' for argument 'htmlContent' given."
            );
        }

        return $this;
    }