Libraryless. Click here for Pure Java version (3307L/23K/74K).
!7 p { S html = loadSnippet(#1008441); L<S> tok = htmlTok(html); //pnl(findContainerTagDeep(tok, "div")); //pnl([S t : tok | startsWith(t, "<div ")]); //pnl(map(f second, findContainerTagDeep(tok, "div"))); //pnl(findContainerTagWithParamsDeep(tok, "div", id := "entryContent")); //pnl(findContainerTagWithParamsDeep(tok, "div", "class", "SENSE-BODY")); //pnl(findContainerTagWithParamsDeep(tok, "span", "class", "DEFINITION")); pnl(map(fg(f trimJoin, f dropTagsAndHTMLComments), findContainerTagWithParamsDeep(tok, "span", "class", "DEFINITION"))); print(trimJoin(dropTagsAndHTMLComments(unnull(first(findContainerTagWithParamsDeep(tok, "span", "class" := "BASE")))))); }
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: | #1008442 |
Snippet name: | Parse Dictionary [dev.] |
Eternal ID of this version: | #1008442/25 |
Text MD5: | 97f7df85cd2a5f00ec637e7b5a54c50f |
Transpilation MD5: | 468e06954a333145cefa56ff18fbf914 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-16 00:55:50 |
Source code size: | 706 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 588 / 731 |
Version history: | 24 change(s) |
Referenced in: | [show references] |