function TFrmMain.GetSources1(FWB: TEmbeddedWB): String;
var
  iall : IHTMLElement;
begin
 if Assigned(FWB.Document) then
 begin
   iall := (FWB.Document AS IHTMLDocument2).body;
   while iall.parentElement <> nil do
   begin
     iall := iall.parentElement;
   end;
   result := iall.outerHTML;
 end;
end;