Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1030878 // wrapInDiv

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3049L) is out of date.

1  
sS wrapInDiv(S html, O... _) {
2  
  S tag = getTag(firstToken(htmlTok(html)));
3  
  ret eqicOneOf(tag, "div", "p") ? html : div(html, _);
4  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030878
Snippet name: wrapInDiv
Eternal ID of this version: #1030878/2
Text MD5: 6f92c7e502fb3f7afaed1bb8aab190a4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-05 16:59:38
Source code size: 136 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 180 / 269
Version history: 1 change(s)
Referenced in: [show references]