html = GStrList:new() p = GHTMLParser:new() p:loadfromstr(tab.source) while p:parsing() do if p.tagname == 'A' then href = html_escape(str_stripquotes(p:getparamval('href'))) if href ~= '' then html:add(''..href..'
') end end end tab:gotourl(tab.url,html.text) p:release() html:release()