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

10
LINES

< > BotCompany Repo | #1028648 // findContainerTagWithClass

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

Libraryless. Click here for Pure Java version (4679L/31K).

// tok must come from htmlTok
// returns all container tags found (including content) as CNC
// should be OK for both HTML and XML
static LL<S> findContainerTagWithClass(L<S> tok, S tag, S className) {
  ret filter(findContainerTag(tok, tag), t -> tagHasClass(t, className));
}

static LL<S> findContainerTagWithClass(S html, S tag, S className) {
  ret findContainerTagWithClass(htmlTok(html), tag, className);
}

Author comment

Began life as a copy of #1002309

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: #1028648
Snippet name: findContainerTagWithClass
Eternal ID of this version: #1028648/3
Text MD5: f51bf81dda493828f466cf15fd920c76
Transpilation MD5: ec1ae27b1700533aab23a6c51568d43c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-01 17:38:25
Source code size: 424 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 180 / 271
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)