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

4
LINES

< > BotCompany Repo | #1002639 // href - make HTML link

JavaX fragment (include)

static S href(S link, O contents, O... params) {
  if (link == null) ret str(contents);
  ret hfulltag a(contents, arrayPlus(params, "href", link));
}

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: #1002639
Snippet name: href - make HTML link
Eternal ID of this version: #1002639/5
Text MD5: db8f6cf8afbdc64a4ad2fea09e3d87f9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-25 02:20:35
Source code size: 153 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 802 / 849
Version history: 4 change(s)
Referenced in: #1002640 - hrefBlank - make HTML link with target=_blank
#1003103 - ahref - make HTML link - synonym of href
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)