Download Jar. Libraryless. Click here for Pure Java version (1992L/13K).
1 | !7 |
2 | |
3 | p { |
4 | for (S html : ll("yo" + htitle("hello") + "and so on", "no title")) { |
5 | Pair<S> pTitle = hextracttag(html, 'title); |
6 | if (pairBNotNull(pTitle)) |
7 | print("Have title: " + join(contentsOfContainerTag(htmlTok(pTitle.b))); |
8 | html = pTitle.a; |
9 | print(html); |
10 | } |
11 | } |
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: | #1014933 |
Snippet name: | Test extracting <title> (OK) |
Eternal ID of this version: | #1014933/3 |
Text MD5: | 7f66e726c1fc91c870d74f31ef93ae09 |
Transpilation MD5: | b4741a35dced6d191bfd6b9c50fe57f1 |
Author: | stefan |
Category: | javax / html parsing |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-06 15:30:19 |
Source code size: | 289 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 522 / 1157 |
Version history: | 2 change(s) |
Referenced in: | [show references] |