// 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); }
Began life as a copy of #1008443
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025932 |
Snippet name: | findTagsWithParams - HTML/XML parsing, fixed tag name |
Eternal ID of this version: | #1025932/3 |
Text MD5: | 16e80bb8e3e465113776008f3435f0c7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-30 16:09:49 |
Source code size: | 411 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 196 / 230 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |