MCPcopy Create free account
hub / github.com/adny-code/fastgrind / _json_for_html_script

Function _json_for_html_script

tools/fastgrind.py:394–402  ·  view source on GitHub ↗
(payload: Any)

Source from the content-addressed store, hash-verified

392
393
394def _json_for_html_script(payload: Any) -> str:
395 return (
396 json.dumps(payload, ensure_ascii=False)
397 .replace("<", "\\u003c")
398 .replace(">", "\\u003e")
399 .replace("&", "\\u0026")
400 .replace("\u2028", "\\u2028")
401 .replace("\u2029", "\\u2029")
402 )
403
404
405class FastgrindBinaryReader:

Callers 1

generate_snapshot_htmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected