Always parse the first title element
This commit is contained in:
		
					parent
					
						
							
								5324023d52
							
						
					
				
			
			
				commit
				
					
						8cabcda5e0
					
				
			
		
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -235,10 +235,9 @@ function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $co | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	//$list = $xpath->query("head/title");
 |  | ||||||
| 	$list = $xpath->query("//title"); | 	$list = $xpath->query("//title"); | ||||||
| 	foreach ($list as $node) | 	if ($list->length > 0) | ||||||
| 		$siteinfo["title"] =  html_entity_decode($node->nodeValue, ENT_QUOTES, "UTF-8"); | 		$siteinfo["title"] = $list->item(0)->nodeValue; | ||||||
| 
 | 
 | ||||||
| 	//$list = $xpath->query("head/meta[@name]");
 | 	//$list = $xpath->query("head/meta[@name]");
 | ||||||
| 	$list = $xpath->query("//meta[@name]"); | 	$list = $xpath->query("//meta[@name]"); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue