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

5
LINES

< > BotCompany Repo | #1032766 // toHTML_gen_shorten

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

Libraryless. Click here for Pure Java version (3976L/23K).

sS toHTML_gen_shorten(int maxLength, O o) {
  IF0 html = call_optional(o, "html");
  if (html != null) ret strOrEmpty(html!);
  ret htmlEncode2(takeFirst(maxLength, strOrEmpty(o)));
}

Author comment

Began life as a copy of #1032698

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032766
Snippet name: toHTML_gen_shorten
Eternal ID of this version: #1032766/7
Text MD5: bcce2c1c74ded62cae5284d962c7a1f0
Transpilation MD5: 00eab598f62836b5aae194f3c82ca0bc
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 06:14:31
Source code size: 187 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 146 / 214
Version history: 6 change(s)
Referenced in: [show references]