Libraryless. Click here for Pure Java version (3050L/18K).
1 | static LS allJavascriptFromHTML(S html) { |
2 | ret allJavascriptFromHTML(htmlTok(html)); |
3 | } |
4 | |
5 | static LS allJavascriptFromHTML(LS tok) { |
6 | ret lmap(tok2 -> join(dropFirstAndLast(2, tok2)), |
7 | findContainerTag(tok, "script")); |
8 | } |
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: | 194 / 268 |
Version history: | 3 change(s) |
Referenced in: | [show references] |