/** * Extracts URLs from tag attributes. * * @param Document $Document Document. * @param string $tag Tag name. * @param string $attribute Attribute name. * @return array URLs. */ protected function _extractUrlsFromtags(Document $Document, $tag, $attribute) { $tags = $Document->tags($tag); return array_map(function ($Tag) use($attribute) { return $Tag->get($attribute); }, $tags); }
/** * {@inheritDoc} */ public function __construct($html) { parent::__construct($html); $this->_fixCharset(); $this->_loadDocument(); }