I have an html site that contains:
<html>
<head>
<title>Teste</title>
</head>
<body>
<h1>Teste 1</h1>
<h2>Teste 2</h2>
</body>
</html>
I'm extracting content from the site and playing on MEMO with:
IdHTTP1 := TIdHTTP.Create(nil);
IdHTTP1.Request.Accept := 'text/html, */*';
IdHTTP1.Request.UserAgent := 'Mozilla/3.0 (compatible; IndyLibrary)';
IdHTTP1.Request.ContentType := 'application/x-www-form-urlencoded';
IdHTTP1.HandleRedirects := True;
HTML := IdHTTP1.Get('http://www.site.com/link.html');
Memo1.Text := (HTML);
The problem that I can not remove the content between the <h1> .. </h1>
tags ie Test 1 and play on a label.