static S linkFrom(S a_tag) { L<S> tok = javaTok(a_tag); // Yeah, it works everywhere! for (int i = 1; i+4 < tok.size(); i += 2) if (tok.get(i).equalsIgnoreCase("href") && tok.get(i+2).equals("=")) return htmlunquote(tok.get(i+4)); return null; }
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: | #1000851 |
Snippet name: | linkFrom - get link from <a href> |
Eternal ID of this version: | #1000851/1 |
Text MD5: | dfbd0b54d78ad68617187a27d50fc93b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-08-30 17:32:39 |
Source code size: | 292 bytes / 8 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 679 / 881 |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |