static L html_linksPlusContents(LS tok) { new LPair out; for (LS tokA : findContainerTag(tok, "a")) { S link = containerTagParam(tokA, "href"); if (nempty(link)) out.add(pair(link, join(contentsOfContainerTag(tokA)))); } ret out; } static L html_linksPlusContents(S html) { ret html_linksPlusContents(htmlTok(html)); }