[DomCrawler] added a note about the default charset

This commit is contained in:
Fabien Potencier 2013-06-13 13:40:37 +02:00
parent d0983f0a79
commit ed3bcb047a
1 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,10 @@ class Crawler extends \SplObjectStorage
/**
* 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.
*
* @param string $content A string to parse as HTML/XML
* @param null|string $type The content type of the string
*