I wanna be able to get the "The Merinda Flat Sandal In Silver" this is in a form this is the code <p class="product_note">The Merinda Flat Sandal In Silver</p>
I wanna copy it to a string like in the code below but to get the text and not the value
string id = "https://www.factory54.co.il/products/Logo-canvas-sneakers-in-White-No-167";
Console.WriteLine(HtmlAgi(id));
}
public static string HtmlAgi(string url)
{
var Webget = new HtmlWeb();
var doc = Webget.Load(url);
HtmlNode ourNode = doc.DocumentNode.SelectSingleNode(("//form[@class]"));
if (ourNode != null)
{
return ourNode.GetAttributeValue("class", "");
}
else
{
return "not fount";
}
}```
```<div class="produtshow clearfix">
<h1 id="manufacturer_header"><a href="https://www.factory54.co.il/designers/stuart-weitzman" title="Stuart Weitzman">Stuart Weitzman</a> <p class="product_note">The Merinda Flat Sandal In Silver</p>
</h1>
</div>```
And here is where the text is in the html file (this is located in a form)