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

8
LINES

< > BotCompany Repo | #1011441 // ai_renderNodeHTML

JavaX fragment (include)

1  
static S ai_renderNodeHTML(WebNode n) {
2  
  ret ai_renderNodeHTML(n, "-");
3  
}
4  
5  
static S ai_renderNodeHTML(WebNode n, S defaultText) {
6  
  if (n == null || !web_hasLabels(n)) ret defaultText;
7  
  ret joinWithComma(map html_encyclopediaTopic(web_texts(n)));
8  
}

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: 431 / 461
Version history: 4 change(s)
Referenced in: [show references]