Libraryless. Click here for Pure Java version (4218L/28K).
1 | // tok must come from htmlTok |
2 | // returns all container tags found (including content) as CNC |
3 | // honors nested tags correctly |
4 | sS contentsOfFirstContainerTagWithParams(L<S> tok, S tag, O... params) {
|
5 | ret joinContentsOfContainerTag(first(findContainerTagWithParams(tok, tag, params))); |
6 | } |
7 | |
8 | sS contentsOfFirstContainerTagWithParams(S html, S tag, O... params) {
|
9 | ret contentsOfFirstContainerTagWithParams(htmlTok(html), tag, params); |
10 | } |
Began life as a copy of #1008443
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026664 |
| Snippet name: | contentsOfFirstContainerTagWithParams - HTML/XML parsing, fixed tag name |
| Eternal ID of this version: | #1026664/1 |
| Text MD5: | 1d142a74921063de14b95e15cc8cdb3e |
| Transpilation MD5: | 8216cb1db94920c8a14663b482c4d63c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-01-18 19:11:33 |
| Source code size: | 442 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 383 / 508 |
| Referenced in: | [show references] |