private function get_title( $html ) { $pattern = '#<title[^>]*>(.*?)<\s*/\s*title>#is';
preg_match( $pattern,
$html,
$match_title );
if ( empty( $match_title[1
] ) || !
is_string( $match_title[1
] ) ) { return '';
} $title =
trim( $match_title[1
] );
return $this->
prepare_metadata_for_output( $title );
} /**
* Parses the site icon from the provided HTML.
*
* @since 5.9.0
*
* @param string $html The HTML from the remote website at URL.
* @param string $url The target website URL.
* @return string The icon URI on success. Empty string if not found.
*/