MCPcopy Index your code
hub / github.com/hoothin/UserScripts / createHTML

Function createHTML

Pagetual/pagetual.user.js:4757–4763  ·  view source on GitHub ↗
(html, doc)

Source from the content-addressed store, hash-verified

4755 }
4756
4757 function createHTML(html, doc) {
4758 const targetDoc = doc || document;
4759 const fragment = targetDoc.createDocumentFragment();
4760 if (html === null || html === undefined || html === '') return fragment;
4761 parseHTMLToFragment(String(html), fragment, targetDoc);
4762 return fragment;
4763 }
4764 let canDirectSetHTML = true;
4765 let canPolicySetHTML = true;
4766 let escapeHTMLPolicy;

Callers 1

setHTMLFunction · 0.70

Calls 1

parseHTMLToFragmentFunction · 0.70

Tested by

no test coverage detected