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)

// tok must come from htmlTok
// returns all tags found
// honors nested tags correctly
static LS findTagsWithParams(S tag, LS tok, O... params) {
  new LS l;
  for (S t : codeTokens(tok))
    if (tagIs(t, tag) && htmlCheckParams(t, params))
      l.add(t);
  ret l;
}

static LS mapMethodLike findTagsWithParams(S tag, S html, O... params) {
  ret findTagsWithParams(tag, htmlTok(html), params);
}

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: 120 / 153
Version history: 2 change(s)
Referenced in: [show references]