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

14
LINES

< > BotCompany Repo | #1025932 // findTagsWithParams - HTML/XML parsing, fixed tag name

JavaX fragment (include)

1  
// tok must come from htmlTok
2  
// returns all tags found
3  
// honors nested tags correctly
4  
static LS findTagsWithParams(S tag, LS tok, O... params) {
5  
  new LS l;
6  
  for (S t : codeTokens(tok))
7  
    if (tagIs(t, tag) && htmlCheckParams(t, params))
8  
      l.add(t);
9  
  ret l;
10  
}
11  
12  
static LS mapMethodLike findTagsWithParams(S tag, S html, O... params) {
13  
  ret findTagsWithParams(tag, htmlTok(html), params);
14  
}

Author comment

Began life as a copy of #1008443

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025932
Snippet name: findTagsWithParams - HTML/XML parsing, fixed tag name
Eternal ID of this version: #1025932/3
Text MD5: 16e80bb8e3e465113776008f3435f0c7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-30 16:09:49
Source code size: 411 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 230
Version history: 2 change(s)
Referenced in: [show references]