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

8
LINES

< > BotCompany Repo | #1013083 // html_addLinkToSpan - add link to <span id="...">

JavaX fragment (include)

static S html_addLinkToSpan(S html, S id, S link) {
  L<S> tok = htmlTok(html);
  for (L<S> tag : findContainerTagWithParams(tok, "span", +id)) {
    tag = subList(tag, 2, l(tag)-2);
    replaceTokens(tag, ahref(link, join(tag)));
  }
  ret join(tok);
}

Author comment

Began life as a copy of #1012588

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013083
Snippet name: html_addLinkToSpan - add link to <span id="...">
Eternal ID of this version: #1013083/6
Text MD5: 8bfa8ffbe1a11863ee3e854b53f28a95
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-24 23:27:13
Source code size: 260 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 331 / 363
Version history: 5 change(s)
Referenced in: [show references]