public function loadHtml($html, $fallbackUrl = null)
    {
        // Extract all data that can be found
        $page = $this->extractOpenGraphData($html);

        // Use the user's URL as fallback
        if ($this->useFallbackMode && $page->url === null) {
            $page->url = $fallbackUrl;
        }

        // Return result
        return $page;
    }
public function loadHtml($html, $fallbackUrl = null)
    {
        // Extract all data that can be found
        $page = $this->extractOpenGraphData($html);

        // Use the user's URL as fallback
        if ($this->useFallbackMode && $page->url === null) {
            $page->url = $fallbackUrl;
        }

        // Return result
        return $page;
    }
public function loadHtml ( $ html , $ fallbackUrl = null ) { // Extract all data that can be found $ page = $ this -> extractOpenGraphData ( $ html ) ; // Use the user's URL as fallback if ( $ this -> useFallbackMode && $ page -> url === null ) { $ page -> url = $ fallbackUrl ; } // Return result return $ page ; }
Crawls the given HTML string for OpenGraph data.

@param   string  $html           HTML string, usually whole content of crawled web resource.
@param   string  $fallbackUrl    URL to use when fallback mode is enabled.

@return  ObjectBase
Crawls the given HTML string for OpenGraph data .