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

5
LINES

< > BotCompany Repo | #1022320 // ahref_unstyled - make HTML link without underline and color change (undecorated)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3271L/19K).

static S ahref_unstyled(S link, O contents, O... params) {
  if (link == null) ret str(contents);
  ret ahref(link, contents,
    paramsPlus(params, style := unparseCSSParameter(mapPlus_noOverwrite(parseCSSParameter(stringPar style(params)), "text-decoration" := "none", color := "inherit"))));
}

Author comment

Began life as a copy of #1003103

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022320
Snippet name: ahref_unstyled - make HTML link without underline and color change (undecorated)
Eternal ID of this version: #1022320/6
Text MD5: 6d6b8d62204625aba7448b25eb16bfb2
Transpilation MD5: d5ae2d0c6eb661020718751f22e37833
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-15 18:07:37
Source code size: 300 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 747 / 845
Version history: 5 change(s)
Referenced in: [show references]