MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / text

Function text

lib/web/renderjson.js:78–78  ·  view source on GitHub ↗
(txt)

Source from the content-addressed store, hash-verified

76 return true; }
77 var stripQuotes = function(txt) { if (txt.startsWith("\"") && txt.endsWith("\"")) return txt.substring(1, txt.length-1); else return txt;}
78 var text = function(txt) { return document.createTextNode(stripQuotes(txt)) };
79 var div = function() { return document.createElement("div") };
80 var span = function(classname) { var s = document.createElement("span");
81 if (classname) s.className = classname;

Callers 4

themetextFunction · 0.70
AFunction · 0.70
disclosureFunction · 0.70
_renderjsonFunction · 0.70

Calls 1

stripQuotesFunction · 0.85

Tested by

no test coverage detected