// tok must come from htmlTok // returns all tags found // honors nested tags correctly static LS findTagsWithParams(S tag, LS tok, O... params) { new LS l; for (S t : codeTokens(tok)) if (tagIs(t, tag) && htmlCheckParams(t, params)) l.add(t); ret l; } static LS mapMethodLike findTagsWithParams(S tag, S html, O... params) { ret findTagsWithParams(tag, htmlTok(html), params); }