1 | // tok must come from htmlTok |
2 | // returns all container tags found (including content) as CNC |
3 | // honors nested tags correctly |
4 | static LL<S> findContainerTagWithParams(L<S> tok, S tag, O... params) { |
5 | new LL<S> l; |
6 | for (L<S> t : findContainerTag(tok, tag)) |
7 | if (htmlCheckParams(second(t), params)) |
8 | l.add(t); |
9 | ret l; |
10 | } |
11 | |
12 | static LL<S> findContainerTagWithParams(S html, S tag, O... params) { |
13 | ret findContainerTagWithParams(htmlTok(html), tag, params); |
14 | } |
Began life as a copy of #1002309
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008443 |
Snippet name: | findContainerTagWithParams - HTML/XML parsing, fixed tag name |
Eternal ID of this version: | #1008443/3 |
Text MD5: | 0b0fdbdd86e48b4c90337d57ac96e667 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-19 19:44:11 |
Source code size: | 474 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 564 / 614 |
Version history: | 2 change(s) |
Referenced in: | [show references] |