| 1 | static S html_linkH3(S html, S link) {
 | 
| 2 | L<S> tok = htmlTok(html); | 
| 3 | L<S> h3 = first(findContainerTag(tok, "h3")); | 
| 4 |   if (h3 != null) {
 | 
| 5 | h3 = dropFirstAndLast_noNewList(h3); | 
| 6 | replaceTokens(h3, ahref(link, join(h3))); | 
| 7 | } | 
| 8 | ret join(tok); | 
| 9 | } | 
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: | 590 / 637 | 
| Version history: | 1 change(s) | 
| Referenced in: | [show references] |