// tok must come from htmlTok // returns all container tags found (including content) as CNC // honors nested tags correctly static LLS mapMethodLike findHTMLTagWithClassDeep(S className, LS tok) { new LLS l; int i = 1; for (i = 1; i < l(tok); i += 2) { if (cic(splitAtSpace_trim(tagParam(tok.get(i), "class")), className)) { int j = findClosingTag(tok, i); l.add(subList(tok, i-1, j+2)); } } ret l; }