/**
* Reads the raw content and send events
* into the page to be built.
* @param $response SimpleHttpResponse Fetched response.
* @return SimplePage Newly parsed page.
* @access public
*/
function parse($response)
{
$this->tags = array();
$this->page = $this->createPage($response);
$parser = new SimpleHtmlSaxParser($this);
$parser->parse($response->getContent());
$this->acceptPageEnd();
$page = $this->page;
$this->free();
return $page;
}