Libraryless. Click here for Pure Java version (3050L/18K).
static LS allJavascriptFromHTML(S html) { ret allJavascriptFromHTML(htmlTok(html)); } static LS allJavascriptFromHTML(LS tok) { ret lmap(tok2 -> join(dropFirstAndLast(2, tok2)), findContainerTag(tok, "script")); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031449 |
| Snippet name: | allJavascriptFromHTML |
| Eternal ID of this version: | #1031449/4 |
| Text MD5: | 7a226608203092fa4866cd8b457b85ef |
| Transpilation MD5: | 84e1af73b15393b03c46640b2f8edf68 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-22 11:09:26 |
| Source code size: | 230 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 412 / 535 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |