1 | static S linkFrom(S a_tag) { |
2 | L<S> tok = javaTok(a_tag); // Yeah, it works everywhere! |
3 | for (int i = 1; i+4 < tok.size(); i += 2) |
4 | if (tok.get(i).equalsIgnoreCase("href") |
5 | && tok.get(i+2).equals("=")) |
6 | return htmlunquote(tok.get(i+4)); |
7 | return null; |
8 | } |
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: | 690 / 898 |
Referenced in: | [show references] |