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

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

Libraryless. Click here for Pure Java version (2341L/15K).

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   

Travelled to 3 computer(s): cfunsshuasjs, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1022320
Snippet name: ahref_unstyled - make HTML link without underline and color change
Eternal ID of this version: #1022320/5
Text MD5: 6d6b8d62204625aba7448b25eb16bfb2
Transpilation MD5: ef6355a8941b8c2b64afc0a8a43fc8c1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-13 22:39:27
Source code size: 300 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 36 / 71
Version history: 4 change(s)
Referenced in: [show references]