1 | static S html_addLinkToSpan(S html, S id, S link) { |
2 | L<S> tok = htmlTok(html); |
3 | for (L<S> tag : findContainerTagWithParams(tok, "span", +id)) { |
4 | tag = subList(tag, 2, l(tag)-2); |
5 | replaceTokens(tag, ahref(link, join(tag))); |
6 | } |
7 | ret join(tok); |
8 | } |
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: | 397 / 432 |
Version history: | 5 change(s) |
Referenced in: | [show references] |