Symfony\Component\DomCrawler\Crawler::addContent
Adds HTML/XML content.
If the charset is not set via the content type, it is assumed to be ISO-8859-1, which is the default charset defined by the HTTP 1.1 specification.
Signature
public function addContent(string
$content,
[null|string
$type = null] )
Parameters
$content
— string- A string to parse as HTML/XML
$type
— object- The content type of the string
Returns
- null|void