htmlparser icon indicating copy to clipboard operation
htmlparser copied to clipboard

Extract all links?

Open barvinog opened this issue 5 years ago • 0 comments

Sorry, this code doesn't extract all links from html source:

procedure Test(html); var LHtml: IHtmlElement; LList: IHtmlElementList; begin LHtml := ParserHTML(html); if LHtml <> nil then begin LList := LHtml.SimpleCSSSelector('a'); for LHtml in LList do Memo1.Lines.Add('url:' + LHtml.Attributes['href']); end; end;

barvinog avatar Aug 10 '20 18:08 barvinog