static S html_linkH3(S html, S link) { L<S> tok = htmlTok(html); L<S> h3 = first(findContainerTag(tok, "h3")); if (h3 != null) { h3 = dropFirstAndLast_noNewList(h3); replaceTokens(h3, ahref(link, join(h3))); } ret join(tok); }
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: | #1012588 |
| Snippet name: | html_linkH3 - add link to h3 tag |
| Eternal ID of this version: | #1012588/2 |
| Text MD5: | c58ec2b9710ddc965311ffe350a7490b |
| Author: | stefan |
| Category: | javax / html |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-07 15:22:42 |
| Source code size: | 252 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 621 / 667 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1013083 - html_addLinkToSpan - add link to <span id="..."> |