Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1026664 // contentsOfFirstContainerTagWithParams - HTML/XML parsing, fixed tag name

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4218L/28K).

// tok must come from htmlTok
// returns all container tags found (including content) as CNC
// honors nested tags correctly
sS contentsOfFirstContainerTagWithParams(L<S> tok, S tag, O... params) {
  ret joinContentsOfContainerTag(first(findContainerTagWithParams(tok, tag, params)));
}

sS contentsOfFirstContainerTagWithParams(S html, S tag, O... params) {
  ret contentsOfFirstContainerTagWithParams(htmlTok(html), tag, params);
}

Author comment

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: 125 / 176
Referenced in: [show references]