Symfony\Component\DomCrawler\Crawler::addHtmlContent
Adds an HTML content to the list of nodes.
The libxml errors are disabled when the content is parsed. If you want to get parsing errors, be sure to enable internal errors via libxml_use_internal_errors(true) and then, get the errors via libxml_get_errors(). Be sure to clear errors with libxml_clear_errors() afterward.
Signature
public function addHtmlContent(string
$content,
[string
$charset = 'UTF-8'] )
Parameters
$content
— string- The HTML content
$charset
— string- The charset