MCPcopy Create free account
hub / github.com/Forward-Future/loopy / jsonForHtml

Function jsonForHtml

loop-library/worker/src/render-loops.js:24–29  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

22}
23
24function jsonForHtml(value) {
25 return JSON.stringify(value, null, 2)
26 .replaceAll("<", "\\u003c")
27 .replaceAll(">", "\\u003e")
28 .replaceAll("&", "\\u0026");
29}
30
31function formatDate(value) {
32 return new Intl.DateTimeFormat("en-US", {

Callers 2

injectHomepageFunction · 0.85
renderLoopPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected