// tok must come from htmlTok
// returns all container tags found (including content) as CNC
// honors nested tags correctly
static LL<S> findContainerTagWithParams(L<S> tok, S tag, O... params) {
new LL<S> l;
for (L<S> t : findContainerTag(tok, tag))
if (htmlCheckParams(second(t), params))
l.add(t);
ret l;
}
static LL<S> findContainerTagWithParams(S html, S tag, O... params) {
ret findContainerTagWithParams(htmlTok(html), tag, params);
}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: | 994 / 1031 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |