I have a string like this:
<div class="fsxl fwb">Myname<br />
So how to get string Myname ?
here is my code:
public string name(string link)
{
WebClient client = new WebClient();
string htmlCode = client.DownloadString(link);
var output = htmlCode.Split("<div class="fsxl fwb">","<br />");
return output.ToString();
}
But the problem is "<div class="fsxl fwb">"
it will become 2 string "<div class=", ">" and fsxl fwb
so how to fix it ?