Linked IN
No link...Use default location.
http://www.linkedin.com/favicon.ico
<link href="/phoenix/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="http://passets-cdn.pinterest.com/images/favicon.png" type="image/x-icon" />
<link rel="shortcut icon" href="https://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico" />
I've determined that the only 100% way to find a favicon is to check the source and see where the link is.
- Default location is not always used. Note first 2 examples.
- Google API works only about 85% of the time. Try It Out
Is there a function that can parse this info out? Or is there a good strategy for using a regex to pull it out manually.
I will be parsing the html server side to get this info.
Ideas:
Regex Example: Try Here. Seems to easy...but here is a starting point.
<link\srel="[Ss]hortcut [Ii]con"\shref="(.+)"(.+)>