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

Function stripQuotes

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

Source from the content-addressed store, hash-verified

75 var isempty = function(obj) { for (var k in obj) if (obj.hasOwnProperty(k)) return false;
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");

Callers 1

textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected