I have a requirement that is need to convert a URL string to HTML string. From the below code snippet,
strings are converted but if url has image or gif, it is not converting. Can any one please suggest?
public static string GetHTMLFromURL(string url = "https://www.google.com/")
string htmlstring = string.Empty;.
using (WebClient client = new WebClient())
htmlstring = client.DownloadString(url);
I tried the below link but no use
Don't want to use third party library.