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.

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

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: 178 / 266
Version history: 1 change(s)
Referenced in: [show references]