require('Gelo') html = [[ Link ]] p = GHTMLParser:new() p:loadfromstr(html) while p:parsing() do print(p.tagname) print(p:getparamval('href')) end