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

8
LINES

< > BotCompany Repo | #1032603 // js_replaceHTML - requires nodeScriptReplace

JavaX fragment (include)

sS js_replaceHTML(S html) {
  ret replaceDollarVars_js([[
    (function() {
      var target = document.querySelector("html");
      target.innerHTML = $html;
      nodeScriptReplace(target);
    })(); ]], html := unnull(html));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032603
Snippet name: js_replaceHTML - requires nodeScriptReplace
Eternal ID of this version: #1032603/2
Text MD5: 7f9c4e15a0d6b99257f0293d86450360
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-11 05:25:30
Source code size: 237 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 144 / 167
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030949 - Transpiler output of #1031393
#1032644 - js_replaceBodyContents - requires nodeScriptReplace