Download Jar. Libraryless. Click here for Pure Java version (1992L/13K).
!7 p { for (S html : ll("yo" + htitle("hello") + "and so on", "no title")) { Pair<S> pTitle = hextracttag(html, 'title); if (pairBNotNull(pTitle)) print("Have title: " + join(contentsOfContainerTag(htmlTok(pTitle.b))); html = pTitle.a; print(html); } }
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: | 521 / 1154 |
Version history: | 2 change(s) |
Referenced in: | -