short_title = __( 'YouTube Video', 'broken-link-checker' ); $this->long_title = __( 'Embedded YouTube video', 'broken-link-checker' ); $this->url_search_string = 'youtube.com/embed/'; } /** * Extract embedded elements from a HTML string. * * Returns an array of IFrame elements found in the input string. * Elements without a 'src' attribute are skipped. * * Each array item has the same basic structure as the array items * returned by blcUtility::extract_tags(), plus an additional 'embed_code' key * that contains the full HTML code for the entire tag. * * @uses blcUtility::extract_tags() This function is a simple wrapper around extract_tags() * * @param string $html * @return array */ function extract_embeds( $html ) { $results = array(); //remove all blocks first $html = preg_replace( '/]*>.+?<\/code>/si', ' ', $html ); //Find likely-looking