-
link rel c# icon
I am returning an Icon not a bitmap or image by the way.
I need to know how to get an icon from the HTML of a webpage in my a Webbrowser control in my project.
A html code such as this:
<link rel="shortcut icon"
href="http://example.com/myicon.ico" />
The "http://example.com/myicon.ico" part could be anything, how would I extract an Icon from this?
Also somethings it can just be "/myicon.ico" without the rest of the url, how would I get an Icon from that?
-
Re: link rel c# icon
I'm attempting to use HTMLagilitypack has anyone tried this?
-
Re: link rel c# icon
How does one use Regex? I want to find parts between particular text not a string, because the string can be anything; whaterver/favicon.ico, http://something.com/logo.ico, icon.ico. But it is always situated in between <link rel="shortcut icon"
href=" and "/>.