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

8
LINES

< > BotCompany Repo | #1011441 // ai_renderNodeHTML

JavaX fragment (include)

static S ai_renderNodeHTML(WebNode n) {
  ret ai_renderNodeHTML(n, "-");
}

static S ai_renderNodeHTML(WebNode n, S defaultText) {
  if (n == null || !web_hasLabels(n)) ret defaultText;
  ret joinWithComma(map html_encyclopediaTopic(web_texts(n)));
}

Author comment

Began life as a copy of #1011054

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011441
Snippet name: ai_renderNodeHTML
Eternal ID of this version: #1011441/5
Text MD5: 00a0e16cb38e288a96e0b7a824fe9132
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-02 03:23:18
Source code size: 257 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 430 / 460
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011928 - ai_renderNodeHTML_shorten