1 | // tok must come from htmlTok |
2 | // returns all container tags found (including content) as CNC |
3 | // honors nested tags correctly |
4 | static L<L<S>> findContainerTagWithParamsDeep(L<S> tok, S tag, O... params) {
|
5 | new L<L<S>> l; |
6 | for (L<S> t : findContainerTagDeep(tok, tag)) |
7 | if (htmlCheckParams(second(t), params)) |
8 | l.add(t); |
9 | ret l; |
10 | } |
11 | |
12 | static L<L<S>> findContainerTagWithParamsDeep(S html, S tag, O... params) {
|
13 | ret findContainerTagWithParamsDeep(htmlTok(html), tag, params); |
14 | } |
Began life as a copy of #1008443
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: | #1008450 |
| Snippet name: | findContainerTagWithParamsDeep - HTML/XML parsing, fixed tag name |
| Eternal ID of this version: | #1008450/3 |
| Text MD5: | b6f40f0a98e0d271d3b74b5ab92ddc64 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-15 13:34:03 |
| Source code size: | 498 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 769 / 819 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |