MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / _doc

Function _doc

codeclash/replay/base.py:307–316  ·  view source on GitHub ↗
(head_extra: str, scripts: str)

Source from the content-addressed store, hash-verified

305 draw();
306})();
307"""
308
309
310def _script_safe(obj) -> str:
311 """JSON for inlining inside a <script> tag (guard against ``</script>``)."""
312 return json.dumps(obj).replace("</", "<\\/")
313
314
315def _doc(head_extra: str, scripts: str) -> str:
316 return (
317 '<!doctype html><html><head><meta charset="utf-8">'
318 + head_extra
319 + "</head><body>\n"

Callers 1

build_pageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected